my_lm: Linear model function

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function fits the given data to the given linear model formula.

Usage

1

Arguments

formula

A formula class object based on variables from data.

data

A data frame object that will be used to fit the model.

Value

A table of numeric values representing estimated values, standard errors, t-test statistics, and two-sided p-values for all coefficients given in formula.

Examples

1
my_lm(lifeExp ~ gdpPercap + continent, my_gapminder)

seangrimm/PROJECT3PACKAGE documentation built on March 22, 2021, 1:52 p.m.