my_lm: Linear Regression Function

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function fits linear regression model.

Usage

1

Arguments

formula

A formula class object to fit data.

data

Numeric data frame to fit formula.

Value

A table of linear model parameter of formula including: data with Estimate, Std. Error, t value, and Pr(>|t|).

Examples

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

RolinaC/STAT302PACKAGE documentation built on Dec. 18, 2021, 10:59 a.m.