fit_lm: fit linear model based on input data.frame

View source: R/fit_lm.R

fit_lmR 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).


tystan/deltacomp documentation built on Oct. 26, 2022, 7:24 a.m.