my_lm: my_lm function

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function performs a linear model fit for the input data with a formula.

Usage

1

Arguments

formula

Formula class object to be used to determine the symbolic description of the model to be fitted.

data

Input data frame that is used to perform the linear model fit.

Value

Table with rows for each coefficient and columns for the Estimate, Std.Error, t value, and Pr(>|t|) that are calculated by perform linear model fit by using the data data and relation determined by formula.

Examples

1
my_lm(mpg~hp + wt, mtcars)

cpr126/mypackage documentation built on Dec. 19, 2021, 6:08 p.m.