predict.psf: Forecasting of univariate time series using a trained PSF...

Description Usage Arguments Value Examples

Description

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

Usage

1
2
## 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

1
2
3
4
5
## 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)

Example output



PSF documentation built on May 2, 2019, 2:10 a.m.