gtsummary_s3_methods {tidycmprsk}R Documentation

gtsummary methods

Description

These functions are S3 methods for working with crr() model results.

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

(tidycrr)
tidycmprsk::crr() regression object

tidy_fun

(function)
Tidier function for the model. Default is tidycmprsk::tidy().

...

Additional arguments passed to broom.helpers::tidy_plus_plus().

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]