predict.vlrr: Predict method for the 'vlrr' method.

Description Usage Arguments Details Value Examples

Description

predict.vlrr Predict method for vlrr function.

Usage

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

Arguments

object

A vlrr model object.

newdata

If A list containing new training examples. See examples.

Details

Predict method for vlrr function.

Value

Prediction based on the model object and newdata.

Examples

1
2
3
4
5
6
library(vlrr)
library(ggplot2) # to load mpg data

model <- vlrr(hwy ~ displ, data = mpg)

predict(model, newdata = list(hwy = mtcars$disp, displ = mtcars$disp * 0.0163))

ivyleavedtoadflax/vlrr documentation built on May 18, 2019, 7:14 a.m.