LinearReg: Linear Regression

Description Usage Arguments Value Examples

View source: R/LinearReg.R

Description

Fit a linear regression model

Usage

1
LinearReg(theModel, data)

Arguments

theModel

user-defined model to fit in linear regression

data

the data set this linear regression model is fitting on

Value

a summary of the linear regression model including the residual statistics, coefficients, statistics values (t and F), p-values, and degrees of freedoms

Examples

1
2
LinearReg(mpg ~ cyl + disp + hp, data = mtcars)
LinearReg(mpg ~ cyl + disp + cyl*disp, data = mtcars)

yw0817/BIOS625_HW4 documentation built on Dec. 23, 2021, 9:10 p.m.