predict.hfr {hfr}R Documentation

Model predictions

Description

Predict values using a fitted hfr model

Usage

## S3 method for class 'hfr'
predict(object, newdata = NULL, ...)

Arguments

object

Fitted 'hfr' model.

newdata

Matrix or data.frame of new values for x at which predictions are to be made.

...

additional methods passed to predict.

Details

Predictions are made by multiplying the newdata object with the estimated coefficients.

Value

A vector of predicted values.

Author(s)

Johann Pfitzinger

See Also

hfr, cv.hfr and coef methods

Examples

x = matrix(rnorm(100 * 20), 100, 20)
y = rnorm(100)
fit = hfr(x, y, kappa = 0.5)
predict(fit)


[Package hfr version 0.7.1 Index]