linreg-class: Linear regression

Description Fields Examples

Description

Returns the result of the Linear Regression

Fields

formula

a formula, format y ~ x_1 + x_2 + ... + x_n.

data

a data frame.

Examples

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()

henkar91/AdvRprogr_lab7 documentation built on May 17, 2019, 9:12 a.m.