my_lm: linear model fit function

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function conducts a linear model function on the given formula and data

Usage

1

Arguments

formula

formula for the linear model (ie: lifeExp ~ gdpPercap + pop)

data

data frame the formula is based on

Value

table with rows for each coefficient and columns for the Estimate, Std. Error, t value, and Pr(>|t|)

Examples

1
my_lm(lifeExp ~ gdpPercap + continent, data = my_gapminder)

laurenng/stat302Package documentation built on Dec. 21, 2021, 9:42 a.m.