Description Value Fields Methods
This class does linear regression and provided different methods to display the data.
Nothing.
l_Xmatrix. Independent Values.
l_ymatrix. Depenent Values.
l_betamatrix. Regression Coeffcients.
l_y_fitted_valuesmatrix. Fitted Values.
l_ematrix. Residuals.
l_nnumeric. Number of Independant Values (Number of Observations).
l_pnumeric. Number of Dependant Values (Number of Parameters in the Model).
l_dfnumeric. Degrees of freedom.
l_sigma_smatrix. Residual Variance.
l_var_betamatrix. Variance of the Regression Coefficients.
l_formulaformula. The Formula for the Linear Regression.
l_p_valuesnumeric. P-Values.
l_t_betamatrix. T-Values for each Coefficient.
l_data_set_namecharacter. 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.