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

Arguments

formula

Formula input of an output class and predictor variables from data.

data

Data frame input.

Value

Matrix displaying the coefficient, standard error, observed t value, and p_value for the linear model.

Examples

1
2
data(mtcars)
my_lm(formula = mpg ~ hp + wt, data = mtcars)

arielle-min/project3package documentation built on March 22, 2021, 1:47 p.m.