linreg-class: linreg class

Description Fields Methods

Description

This class contains methods to handle multiple linear regression. You can find more information about the linear regression in the link bellow: https://en.wikipedia.org/wiki/Linear_regression

Fields

formula

A formula to show the relationship between dependent and independent variables.

data

A data.frame to give the values of variables.

reg_coeffs

A matrix of regression coefficients.

fitted_value

A matrix of predicted values for dependent variable.

resids

A matrix that contains the differences between predicted and actual values of dependent variable.

df

A numeric scalar that shows the degree of freedom.

resids_var

A matrix that shows the variance of residuals.

reg_coef_var

A matrix that shows the variance of regression coefficients.

t_values

A matrix that shows t values.

p_values

A matrix of p values.

Methods

coef()

printing regression coefficients

initialize(formula, data)

initializing regression calculations

plot()

ploting residuals and scaled residuals vs fitted values

pred()

printing vector of fitted values

print()

print regression coefficients

resid()

printing vector of resisuals


nahfa911/linregl4 documentation built on May 15, 2019, 1:18 p.m.