Learn R Programming

tidycmprsk (version 1.1.0)

base_methods_crr: Functions for tidycrr objects

Description

Functions for tidycrr objects

Usage

# S3 method for tidycrr
coef(object, ...)

# S3 method for tidycrr vcov(object, ...)

# S3 method for tidycrr model.matrix(object, ...)

# S3 method for tidycrr model.frame(formula, ...)

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

Value

coef vector, model matrix, model frame, terms object

Arguments

...

not used

formula

a formula

x, object

a tidycrr object

Examples

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

coef(mod)

model.matrix(mod) %>% head()

model.frame(mod) %>% head()

terms(mod)

Run the code above in your browser using DataLab