build_reg_model {BlanketStatsments}R Documentation

Build a generic regression model model

Description

Build a generic regression model from data and meta-parameters. Currently only available for linear and logistic types.

Usage

build_reg_model(
  df,
  outcome,
  predictors,
  covariates = c(),
  modality = "linear",
  verbose = FALSE
)

Arguments

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

Value

A regression model of linear or logistic type

Author(s)

J. Peter Marquardt

Examples

mod <- build_reg_model(data.frame('outcome' = c(1,2), 'pred' = c(3,4)), 'outcome', c('pred'))


[Package BlanketStatsments version 0.1.2 Index]