my_lm: Linear Modeling Function

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function applies a linear model to a set of data, and returns the results.

Usage

1

Arguments

formula

A formula specifying which variable is being predicted by which other variables.

data

A set of data from which the model will be built.

Value

A table displaying the linear coefficients, the standard error of those coefficients, the t-value, and the p-value for each variable.

Examples

1
my_lm(lifeExp ~ gdpPercap + continent, my_gapminder)

oliverlinehan41/project3package documentation built on Dec. 22, 2021, 4:21 a.m.