linreg: Linear regression models using an S3 class and the...

Description Usage Arguments Value Examples

View source: R/linreg_s3.R

Description

Linear regression models using an S3 class and the calculations are done using QR Decomposition

Usage

1

Arguments

formula

formula

data

a dataframe

Value

Returns an object of the class linreg

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 linreg_mod <-linreg(Petal.Length~Sepal.Width+Sepal.Length, data=iris)
 summary(linreg_mod)

Gives character vector containing all the names which occur in the formula.
Model matrix created where operations are done
Object creation
Decomposing to Q and R matrix
Regression coefficient
Gives all the fitted values
Gives residual values of Formula
Degrees of freedom
Gives residual variance
converting into a scalar quantity
Calculating variance of Regression coefficients
T-values for each coefficient
P-values

menon1234/Lab04 documentation built on March 27, 2021, 12:50 a.m.