my_lm: Linear model function

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function fits a linear model to the data given.

Usage

1

Arguments

formula

String input to be used as the formula for the linear model.

data

Data frame input to be used as the data the linear model used to fit on.

Value

a table with rows for each coefficient of the linear model including the intercept, and columns for Estimate, Std. Error, t value, and Pr(>|t|).

Examples

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

yiqunl2-1863642/Project3Package documentation built on Dec. 23, 2021, 8:11 p.m.