my_lm: Linear model 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

formula class object, similar to lm().

data

Input data frame.

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 + wt, mtcars)

JudyTi/STAT302package documentation built on Dec. 18, 2021, 2:32 a.m.