Description Fields Methods Examples
This function make a "Reference Class" with class=linreg for a linjer regression
formulaThe formula for the model
dataA object of class data.frame
coef()Give you the coef values as a numeric vector
plot()Printing out two graps of residuals and standardized residuals vs. fitted values.
pred()Give you the predicted values as a numeric vector
print()Give you a nice view of the calculation
resid()Give you the residuals as a numeric vector
summary()Give you a nice summary of the calculation
1 2 3 4 5 6 7 | data(iris)
linreg$new(Petal.Length~Sepal.Width+Sepal.Length, data=iris)$print()
linreg$new(Petal.Length~Sepal.Width+Sepal.Length, data=iris)$pred()
linreg$new(Petal.Length~Sepal.Width+Sepal.Length, data=iris)$summary()
linreg$new(Petal.Length~Sepal.Width+Sepal.Length, data=iris)$resid()
linreg$new(Petal.Length~Sepal.Width+Sepal.Length, data=iris)$coef()
linreg$new(Petal.Length~Sepal.Width+Sepal.Length, data=iris)$plot()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.