my_lm: Linear model function

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function fits a linear model.

Usage

1
my_lm(my_fml, my_data)

Arguments

my_fml

'formula' class object.

my_data

Input data frame.

Value

A table of coeffiencts for the linear regression, which contains 'Estimate', 'Std. Error', 't value', and 'Pr(>|t|)'.

Examples

1
2
data(my_gapminder)
my_lm(my_fml = pop ~ gdpPercap, my_data = my_gapminder)

SimonaLiao/Stat302Package documentation built on March 23, 2020, 9:56 p.m.