my_lm: Fitting linear models

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function is used to fit linear models in order to carry out regressions.

Usage

1

Arguments

formula

An object of class "formula" that describes the model to be fitted.

data

An input data frame containing the variables to be used in the model.

Value

A table with rows for each estimated coefficient and columns including the estimate, standard error, t-statistic, and p-value.

Examples

1
my_lm(mpg ~ hp + wt, mtcars)

adammcbroom/STAT302package documentation built on Dec. 18, 2021, 10:25 p.m.