predict.psf | R Documentation |
Takes a trained PSF model and the prediction horizon as inputs.
## S3 method for class 'psf' predict(object, n.ahead = 1, ...)
object |
The trained PSF model generated by psf() function. |
n.ahead |
The number of predicted values to be obtained. |
... |
Other parameters will be ignored. |
Vector with the resulting predictions
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.