Skip to contents

Extract Covariate Names

Usage

covariates(object, ...)

Arguments

object

(ANY) the object to extract covariate names from.

...

additional arguments added by methods.

Value

For DataSurvival, a character vector containing the covariate names. For LongitudinalModel, a named list of character vectors, one per covariate coefficient parameter; see covariates.LongitudinalModel().

Examples

surv_data <- DataSurvival(os_data, Surv(os_time, os_event) ~ age + sex)
covariates(surv_data)
#> [1] "age"  "sexM"