View source: R/Model_formula_tools.R
| build_model_formula | R Documentation | 
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()
)
| outcome | character denoting the column with the outcome. | 
| predictors | vector of characters denoting the columns with the predictors. | 
| censor_event | character denoting the column with the censoring event, for use in Survival-type models. | 
| env | environment to be used in formula creation | 
formula for use in statistical models
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.