linreg: Linear regression model, creating a new class

Description Usage Arguments Value Examples

View source: R/linreg.R

Description

Uses QR decomposition to compute a linear regression model from the specified formula and included data. It returns the values calculated in a new S3 class called "linreg"

Usage

1

Arguments

formula

The formula for the linear regression model, in the class "formula"

data

A data set including the variables that the model contains

Value

Returns the class "linreg" and all the values in a list.

All the variables included in the list:

Examples

1
2
data("iris")
linreg(formula = Petal.Length ~ Species, data = iris)

CharlesTGurra/lab4RT documentation built on Sept. 25, 2020, 8:49 a.m.