my_lm: linear model

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, similar to lm().

data

Input data frame.

Value

A table with rows of each coefficients and columns for the Estimate, Std. Error, t value, and Pr(|t|).

Examples

1
2
3
data(mtcars)
test_my_lm <- my_lm(mpg ~ hp + wt, data = mtcars)
test_my_lm

samcho11/STAT302package documentation built on Dec. 22, 2021, 10:10 p.m.