my_lm: Linear model function

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function fits a linear model in r and give a summary table.

Usage

1

Arguments

formula

A formula class object specifying the response variable and explanatory variables by using columns of data.

data

Input data frame.

Value

A table which is similar to the summary() given by the lm() function.

Examples

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

Zhaoyu-Andrew/Rpackage documentation built on March 19, 2020, 4:55 p.m.