extract_covars {rprev} | R Documentation |
Returns the name of the covariates in the registry data set that are required by the survival model.
Description
Used in prevalence
to determine which covariates should be sampled when
simulating an incident population. This should provide a character vector containing
column names of the original registry data set input to prevalence
that
are used by the survival model.
Usage
extract_covars(object)
Arguments
object |
The survival object itself |
Value
A character vector holding the column names. Can be NULL if no covariates are used i.e. the survival model is built based on population level data rather than individual level data.
[Package rprev version 1.0.5 Index]