fit_lm {codaredistlm}R Documentation

fit linear model based on input data.frame

Description

fit linear model based on input data.frame

Usage

fit_lm(y_str, X, verbose = TRUE)

Arguments

y_str

a string representation of the column in X that is the outcome

X

a data.frame or matrix that contains the predictor and outcome variables

verbose

if TRUE (default), a model summary will be printed to the console

Value

A lm object where the y_str column has been regressed against the remaining columns of X (with an intercept term as well).


[Package codaredistlm version 0.1.0 Index]