predict.linreg: Predict method for linreg objects

Description Usage Arguments Value Examples

View source: R/predict.R

Description

Predicted values from an object of the class "linreg".

Usage

1
2
## S3 method for class 'linreg'
predict(object, ...)

Arguments

object

An object of class "linreg", generated by a call to linreg.

...

additional arguments.

Value

A vector of predicted values.

Examples

1
2
linreg_obj <- linreg(Petal.Length~Species, datasets::iris)
predict(linreg_obj)

hugkn566/Lab4HugoOtto documentation built on Oct. 20, 2020, 2:17 p.m.