Skip to contents

This function is an S3 methods for working with cureit() model results.

  • tbl_regression.cureit(): This function sets the cureit tidier for cureit() models.

Usage

# S3 method for class 'cureit'
tbl_regression(x, tidy_fun = cureit::tidy, ...)

Arguments

x

(cureit)
cureit::cureit() regression object

tidy_fun

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

...

[Experimental] Additional arguments passed to broom.helpers::tidy_plus_plus(). See ?tidy_plus_plus_dots for details.

type

not used

Value

gtsummary table or data frame of results

Examples

cureit(surv_formula = Surv(days, status) ~ ulceration,
  cure_formula = ~ ulceration, data = melanoma) |>
  gtsummary::tbl_regression() |>
  gtsummary::as_gt()
#> Warning: 0 of 100 did not converge.
Characteristic Beta 95% CI1 p-value
(Intercept), Cure model -1.4 -1.9, -0.86
ulceration_yes, Cure model 1.6 0.81, 2.4
ulceration_yes, Survival model 0.52 -0.12, 1.2 0.11
1 CI = Confidence Interval