my_lm: linear model

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function takes a formula and input data and fits a linear regression model of the data to the formula, providing summary statistics.

Usage

1

Arguments

formula

formula to fit the input data to

data

input data frame

Value

A table of the parameters of the model and their respective estimated values, standard errors, t values, and p values

Examples

1
2
data(mtcars)
my_lm(mpg ~ hp + wt, data = mtcars)

dzeng8/STAT302PACKAGE documentation built on Dec. 20, 2021, 2:19 a.m.