my_lm: Linear Model Function

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

Fits a linear model to a data frame.

Usage

1

Arguments

formula

Input of formula class.

data

Data frame of numeric values.

Value

Table where coefficients are represented by a row, and columns are the estimate (numeric), standard error (numeric), t-value (numeric), and the p-value of the t-test (numeric).

Examples

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

achew20/project3Package2021 documentation built on Dec. 18, 2021, 10:22 p.m.