predict.WH_1d {WH}R Documentation

Predict new values using a fitted 1D WH model

Description

Extrapolate the model for new observations.

Usage

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

Arguments

object

An object of class "WH_1d" returned by the WH() function

newdata

A vector containing the position of new observations. Observations from the fit will automatically be added to this, in the adequate order

...

Not used

Value

An object of class "WH_1d" with additional components for model prediction.

Examples


object <- WH(portfolio_mort$d, portfolio_mort$ec)
object_extra <- predict(object, newdata = 40:99)
plot(object_extra)


[Package WH version 2.0.0 Index]