my_lm: Linear regression function

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function does linear regression according to formula and data.

Usage

1

Arguments

formula

Formula object input used to fit data.

data

Numeric data frame to be fitted by formula.

Value

A table of linear model parameter of formula based on, data, includes Estimate, Std. Error, t value, and Pr(>|t|).

Examples

1
my_lm(lifeExp ~ gdpPercap + continent, my_gapminder)

Ranul-Liu/STAT302package documentation built on Dec. 18, 2021, 9:52 a.m.