-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improving error msg in
tbl_survfit()
when 2 or more stratifying var…
…iables are present (#2118) * Improving error msg in `tbl_survfit()` when 2 or more stratifying variables are present * Update tbl_survfit.R
- Loading branch information
Showing
5 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Package: gtsummary | ||
Title: Presentation-Ready Data Summary and Analytic Result Tables | ||
Version: 2.0.4.9007 | ||
Version: 2.0.4.9008 | ||
Authors@R: c( | ||
person("Daniel D.", "Sjoberg", , "[email protected]", role = c("aut", "cre"), | ||
comment = c(ORCID = "0000-0003-0862-2018")), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# tbl_survfit(x) messaging | ||
|
||
Code | ||
tbl_survfit(survival::survfit(survival::Surv(ttdeath, death) ~ trt + grade, | ||
trial), times = c(12, 24)) | ||
Condition | ||
Error in `tbl_survfit()`: | ||
! The `tbl_survfit()` function supports `survival::survfit()` objects with no more than one stratifying variable. | ||
i The model is stratified by "trt" and "grade". | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters