Description Usage Arguments Value Author(s) Examples
View source: R/Blanket_statsments.R
Build a generic regression model from data and meta-parameters. Currently only available for linear and logistic types.
1 2 3 4 5 6 7 8 | 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
1 | mod <- build_reg_model(data.frame('outcome' = c(1,2), 'pred' = c(3,4)), 'outcome', c('pred'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.