my_lm: Linear Model

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function fits a linear model.

Usage

1

Arguments

formula

A formula class object, similar to lm().

data

Input data frame.

Value

A table similar to the coefficent table from summary() with rows for each coefficient (including the Intercept) and columns for the estimate, standard error, t value, and Pr(>|t|)

Examples

1
my_lm(lifeExp ~ gdpPercap + continent, my_gapminder)

mzhang98/project3 documentation built on March 22, 2021, 1:51 p.m.