Closed Yunuuuu closed 6 months ago
It would be beneficial if the function survfit2_p
could directly provide the p-value. Additionally, format
can accept purrr-style formula now.
This also deals with the issue of partial argument matching for some functions like scale_y_continous
(labels) and add_quantile
(y_value).
@Yunuuuu thank you for the pull request.
the typical lifecycle here would be to file an issue where the implementation is discussed. after an API/implementation has been agreed upon, then we'd discuss who would make the update.
I took a quick look, and I see there is an issue when there are 3+ groups. The function returns a single p-value when most users would expect multiple HRs.
I think a better first step than a new function would be a simple example adding a table of Cox results as an annotation.
Perhaps create an issue and let's discuss further in the new year?
What changes are proposed in this pull request? add function
survfit2_hr
to calculate Hazard ratioReviewer Checklist (if item does not apply, mark as complete)
renv::install()
_pkgdown.yml
pkgdown::build_site()
. Check the R console for errors, and review the rendered website.withr::with_envvar(list(CI = TRUE), code = devtools::test_coverage())
. Begin in a fresh R session without any packages loaded.usethis::use_spell_check()
runs with no spelling errors in documentationWhen the branch is ready to be merged into master:
NEWS.md
with the changes from this pull request under the heading "# ggsurvfit (development version)
". If there is an issue associated with the pull request, reference it in parentheses at the end update (seeNEWS.md
for examples).usethis::use_version(which = "dev")
usethis::use_spell_check()
again