Learn R Programming

tidycmprsk (version 1.1.0)

broom_methods_crr: Broom methods for tidycrr objects

Description

Broom methods for tidycrr objects

Usage

# S3 method for tidycrr
tidy(x, exponentiate = FALSE, conf.int = FALSE, conf.level = x$conf.level, ...)

# S3 method for tidycrr glance(x, ...)

# S3 method for tidycrr augment(x, times = NULL, probs = NULL, newdata = NULL, ...)

Value

a tibble

Arguments

x

a tidycrr object

exponentiate

Logical indicating whether or not to exponentiate the coefficient estimates. Defaults to FALSE.

conf.int

Logical indicating whether or not to include a confidence interval in the tidied output. Defaults to FALSE.

conf.level

Level of the confidence interval. Default matches that in crr(conf.level=) (typically, 0.95)

...

not used

times

Numeric vector of times to obtain risk estimates at

probs

Numeric vector of quantiles to obtain estimates at

newdata

A base::data.frame() or tibble::tibble() containing all the original predictors used to create x. Defaults to NULL.

See Also

Other crr() functions: crr(), predict.tidycrr()

Examples

Run this code
crr <- crr(Surv(ttdeath, death_cr) ~ age + grade, trial)

tidy(crr)

glance(crr)

augment(crr, times = 12)

Run the code above in your browser using DataLab