predict.ucm: Unobserved Components Model Predictions

Description Usage Arguments Value See Also Examples

View source: R/predict.ucm.R

Description

Function predict.ucm predicts the future observations of an Unobserved Components Model. The ucm function returns an object model of class SSModel which is then further used in predict.SSModel.

Usage

1
2
## S3 method for class 'ucm'
predict(object, n.ahead, newdata, ...)

Arguments

object

an object of class SSModel which can be retrieved from $model call of an object of class ucm.

n.ahead

number of points for which forecasts are to generated.

newdata

dataset for which prediction is to be made.

...

ignored.

Value

A matrix or list of matrices containing the predictions.

See Also

predict.SSModel.

Examples

1
2
modelNile <- ucm(Nile~0, data = Nile, slope = TRUE)
predict(modelNile$model, n.ahead = 12)

rucm documentation built on May 2, 2019, 11:05 a.m.