gtsummary_s3_methods {tidycmprsk} | R Documentation |
gtsummary methods
Description
These functions are S3 methods for working with crr()
model
results.
-
tbl_regression.tidycrr()
: This function sets the tidycmprsk tidier forcrr()
models. -
global_pvalue_fun.tidycrr()
: This function ensures thatgtsummary::add_global_p(anova_fun)
uses the Wald test by default (instead ofcar::Anova()
, which does not support this model type). The Wald test is executed withcardx::ard_aod_wald_test()
, which wrapsaod::wald.test()
.
Usage
## S3 method for class 'tidycrr'
tbl_regression(x, tidy_fun = tidycmprsk::tidy, ...)
## S3 method for class 'tidycrr'
global_pvalue_fun(x, type, ...)
Arguments
x |
( |
tidy_fun |
( |
... |
Additional arguments passed to |
type |
not used |
Value
gtsummary table or data frame of results
Examples
crr(Surv(ttdeath, death_cr) ~ age + grade, trial) |>
gtsummary::tbl_regression() |>
gtsummary::add_global_p() |>
gtsummary::as_gt()
[Package tidycmprsk version 1.1.0 Index]