fit linear model based on input data.frame
fit_lm(y_str, X, verbose = TRUE)
y_str
: a string representation of the column in X
that is the outcomeX
: a data.frame or matrix that contains the predictor and outcome variablesverbose
: if TRUE
(default), a model summary will be printed to the consoleA lm
object where the y_str
column has been regressed against the remaining columns of X
(with an intercept term as well).