my_lm: Linear Model Function

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function is used to fit data to a linear model

Usage

1

Arguments

formula

Formula class object that indicates which classes from the data to use as for the y-variable and which to use for for the x-variable

data

Data frame to build a linear model for

Value

Table that reports the estimate, standard error, t-value, and probability > t for each coefficient, including the intercept

Examples

1
2
my_lm(lifeExp ~ gdpPercap, my_gapminder)
my_lm(lifeExp ~ gdpPercap + continent, my_gapminder)

irenshaw99/stat302package documentation built on Dec. 20, 2021, 7:59 p.m.