my_lm: Linear model

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function fits a polynomial model to data, where the polynomial is defined by the formula argument.

Usage

1

Arguments

formula

The formula object which describes what polynomial to fit.

data

The data used to fit the polynomial. Expects a dataframe.

Value

A table describing the estimate, standard error, t and P values for each coefficient.

Examples

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

andreyrisukhin/STAT302package documentation built on Dec. 19, 2021, 3:34 a.m.