linreg-class: LinearRegression class

Description Value Fields Methods

Description

LinearRegression class containing information about relevant results from the linear regression method.

Value

class

Fields

formula

A formula

data

A data.frame

regressions_coefficients

A vector

fitted_values

A matrix

residuals

A matrix

degrees_freedom

A numeric

residual_variance

A matrix

variance_regression_coefficients

A matrix

t_values

A vector

Methods

coef()

Returns the regression coefficients as a named vector.

plot()

Plots the residuals ~ fitted values and scale-location.

pred()

Returns the fitted values.

print()

Prints input parameters and regression coefficients.

resid()

Returns the residuals.

summary()

Summarizes values of regression.


senseiyukisan/732A94-Lab4 documentation built on Oct. 5, 2020, 3:15 a.m.