Learn R Programming

ezcox (version 1.0.4)

get_models: Get Model List from ezcox Object

Description

Models are renamed by the formulas.

Usage

get_models(x, variables = NULL)

Value

a named list with class ezcox_models

Arguments

x

a ezcox object from ezcox().

variables

a character vector representing variables to select.

Examples

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

Run the code above in your browser using DataLab