get_models: Get Model List from ezcox Object

Description Usage Arguments Value Examples

View source: R/get_models.R

Description

Models are renamed by the formulas.

Usage

1
get_models(x, variables = NULL)

Arguments

x

a ezcox object from ezcox().

variables

a character vector representing variables to select.

Value

a named list with class ezcox_models

Examples

1
2
3
4
library(survival)
zz <- ezcox(lung, covariates = c("sex", "ph.ecog"), controls = "age", return_models = TRUE)
mds <- get_models(zz)
str(mds, max.level = 1)

ezcox documentation built on Oct. 28, 2021, 5:08 p.m.