get_models: Get Model List from ezcox Object

View source: R/get_models.R

get_modelsR Documentation

Get Model List from ezcox Object

Description

Models are renamed by the formulas.

Usage

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

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 May 31, 2023, 7:49 p.m.