-
-
Notifications
You must be signed in to change notification settings - Fork 3
Add add_difference_row.tbl_survfit_times for survival difference rows
#132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Unit Tests Summary 1 files 70 suites 1m 38s ⏱️ Results for commit 4174f6a. ♻️ This comment has been updated with latest results. |
Unit Test Performance Difference
Additional test case details
Results for commit 3c94a0b ♻️ This comment has been updated with latest results. |
Code Coverage SummaryDiff against mainResults for commit: 4174f6a Minimum allowed coverage is ♻️ This comment has been updated with latest results |
ddsjoberg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for putting this together!
I think we'll need to write it a bit more generally because while the survival differences are important to report, we'll also need to report items like hazards ratios, right? Let's meet to discuss our reporting needs.
|
This is great, thank you. At the moment this is hyper focussed to create the table from the spec. I wonder if there would be value in adding a |
@ddsjoberg I'm not sure if the two should be mixed - this function currently calculates the difference for each "level" of the table, in this case for every timepoint, but hazard ratios are calculated at base level (independent of any timepoints), so the input type would be different for HR calculations (doesn't need to by a |
This comment is more about keeping the function customizable/more generalizable with the |
What changes are proposed in this pull request?
add_difference_row.tbl_survfit_timesto add survival difference rows to survival time summary tables. (Add function to add difference statistics totbl_survfit_times()tables #131)Also:
statisticformats fortbl_survfit_times()to align with catalog standard.skip_if_pkg_not_installed()in tests.Closes #131
Pre-review Checklist (if item does not apply, mark is as complete)
usethis::pr_merge_main()devtools::test_coverage()Reviewer Checklist (if item does not apply, mark is as complete)
pkgdown::build_site(). Check the R console for errors, and review the rendered website.devtools::test_coverage()When the branch is ready to be merged:
NEWS.mdwith the changes from this pull request under the heading "# cards (development version)". If there is an issue associated with the pull request, reference it in parentheses at the end update (seeNEWS.mdfor examples).