my_lm: My Linear Model

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function calculates a linear regression model for given data.

Usage

1

Arguments

formula

A formula object with the linear regression equation to be calculated from data set data.

data

A data frame containing the data to be modeled.

Value

A table with coefficient estimates and standard errors for each variable specified by formula in the linear model as well as t-values and p-values for two-sided t-tests performed on each coefficient estimate.

Examples

1
my_lm(lifeExp ~ gdpPercap, data = my_gapminder)

thulinjt/project3package documentation built on March 22, 2021, 2:41 p.m.