Description Usage Arguments Value Author(s) Examples
View source: R/Blanket_statsments.R
Build a Cox proportional hazards model from data and meta-parameters
1 2 3 4 5 6 7 8 | build_cox_model(
df,
event_time,
event_censor,
predictors,
covariates = c(),
verbose = FALSE
)
|
df |
data.frame containing the data set |
event_time |
character denoting column with event time |
event_censor |
character denoting column specifying events/censoring |
predictors |
character vector denoting columns with independent variables of interest |
covariates |
character vector denoting columns with independent variables not of interest. Covariates are mathematically identical to predictors but will be ignored in reporting |
verbose |
logical. TRUE activates printout messages |
A Cox proportional hazards model
J. Peter Marquardt
1 2 | data <- survival::lung
mod <- build_cox_model(data, 'time', 'status', c('age', 'sex'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.