Description Value Fields Methods
This class does linear regression and provided different methods to display the data.
Nothing.
l_X
matrix. Independent Values.
l_y
matrix. Depenent Values.
l_beta
matrix. Regression Coeffcients.
l_y_fitted_values
matrix. Fitted Values.
l_e
matrix. Residuals.
l_n
numeric. Number of Independant Values (Number of Observations).
l_p
numeric. Number of Dependant Values (Number of Parameters in the Model).
l_df
numeric. Degrees of freedom.
l_sigma_s
matrix. Residual Variance.
l_var_beta
matrix. Variance of the Regression Coefficients.
l_formula
formula. The Formula for the Linear Regression.
l_p_values
numeric. P-Values.
l_t_beta
matrix. T-Values for each Coefficient.
l_data_set_name
character. The Given Data.
coef()
Returns the Coefficients
initialize(formula, data)
Constructor for creating the object. Arguments are the formlua and the corresponding data frame.
plot()
Plots the Fitted Values one time with the Residuals and one time with standardized Residuals
pred()
Returns the Fitted Values
print()
Prints some basic information like the coefficients.
resid()
Returns the Residuals
summary()
Prints a summary of the Linear Regression
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.