pred.ridgereg: Return predictions of a ridgereg object

Description Usage Arguments Value Examples

View source: R/pred.ridgereg.R

Description

pred returns the predictions of a ridgereg object.

Usage

1
2
## S3 method for class 'ridgereg'
pred(object, newdata = NULL, ...)

Arguments

object

A ridgereg object.

newdata

A data frame with new data for predictions.

...

Further arguments passed to or from other methods.

Value

Return a named vector with predictions.

Examples

1
pred(ridgereg(formula = Petal.Length ~ Species, data = iris, lambda = 0))

Sidryd/lab4sidjac documentation built on Oct. 17, 2020, 11:05 p.m.