Returns the result of the Linear Regression
formula
a formula, format y ~ x_1 + x_2 + ... + x_n.
data
a data frame.
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)$plot()
linreg$new(Petal.Length~Sepal.Width+Sepal.Length, data=iris)$resid()
linreg$new(Petal.Length~Sepal.Width+Sepal.Length, data=iris)$pred()
linreg$new(Petal.Length~Sepal.Width+Sepal.Length, data=iris)$coef()
linreg$new(Petal.Length~Sepal.Width+Sepal.Length, data=iris)$summary()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.