powered by
Build formula used in statistical models from vectors of strings with the option to specify an environment.
build_model_formula( outcome, predictors, censor_event = NULL, env = parent.frame() )
formula for use in statistical models
character denoting the column with the outcome.
vector of characters denoting the columns with the predictors.
character denoting the column with the censoring event, for use in Survival-type models.
environment to be used in formula creation
J. Peter Marquardt
build_model_formula("outcome", c("pred_1", "pred_2")) build_model_formula("outcome", c("pred_1", "pred_2"), censor_event = "cens_event")
Run the code above in your browser using DataLab