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

A formula class object

data

Dataframe to be inputted

Value

Table with rows for each coefficient (including the (Intercept)!) and columns for the Estimate, Std. Error, t value, and Pr(>|t|).

Examples

1
my_lm(mpg ~ hp, data = mtcars)

chen1649/mypackage documentation built on Dec. 19, 2021, 3:03 p.m.