my_lm: 'my_lm' Function

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function fits a linear model in R.

Usage

1

Arguments

formula

a formula class object.

data

an input data frame.

Value

a table with rows for each coefficient and columns for the Estimate, Std. Error, t value, and Pr(>|t|).

Examples

1
my_lm(mpg ~ hp, data = mtcars)

Cherry-ty-Pan/STAT302package documentation built on Dec. 17, 2021, 2 p.m.