predict.psf {PSF}R Documentation

Forecasting of univariate time series using a trained PSF model

Description

Takes a trained PSF model and the prediction horizon as inputs.

Usage

## S3 method for class 'psf'
predict(object, n.ahead = 1, ...)

Arguments

object

The trained PSF model generated by psf() function.

n.ahead

The number of predicted values to be obtained.

...

Other parameters will be ignored.

Value

Vector with the resulting predictions

Examples

## Train a PSF model from the univariate time series 'nottem' (package:datasets).
p <- psf(nottem)

## Forecast the next 12 values of such time series.
pred <- predict(p, n.ahead = 12)

[Package PSF version 0.5 Index]