build_reg_model {BlanketStatsments} | R Documentation |
Build a generic regression model from data and meta-parameters. Currently only available for linear and logistic types.
build_reg_model(
df,
outcome,
predictors,
covariates = c(),
modality = "linear",
verbose = FALSE
)
df |
data.frame containing the data set |
outcome |
character denoting column with the outcome of interest |
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 |
modality |
character designating type. Currently limited to 'linear' and 'logistic'. |
verbose |
logical. TRUE activates printout messages |
A regression model of linear or logistic type
J. Peter Marquardt
mod <- build_reg_model(data.frame('outcome' = c(1,2), 'pred' = c(3,4)), 'outcome', c('pred'))