linreg-class: Create a linreg object

Description Arguments Value Fields Methods

Description

Create a linreg object

Arguments

formula

formula for linear model

data

the dataset provided

Value

empty

Fields

formula,

formla for the linear model

data,

the dataset provided

m_X,

the matrix of explanatory variables

m_Y,

the matrix of dependent variable

X_t,

transpose of m_X

XtX,

inverse of matrix multiplication of m_X and X_t

betaestimates,

estimates of the parameters

yfit,

estimated y values

residual,

residuals computed by subtracting yfit from actual y values

nparameters,

number of parameters

residualvariance,

variance of the residuals

residualstd,

standard deviation of residuals

betavariance,

variance of beta estimates

bb,

diagonal of betavariance matrix

tvalues,

comptued t values per parameter

pvalues,

pvalues computed according to tvalues and pt function

standardizedresiduals,

standardized residuals

sqrtresiduals,

the square root of standardizedresiduals

Methods

print()

Prints information about model

summary()

Prints the summary of linear regression model.


Thijsq/rlab4 documentation built on May 19, 2019, 8:55 p.m.