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

poceviciute/AdvRprogr_lab4 documentation built on May 30, 2019, 4:39 p.m.