Learn R Programming

UComp (version 4.0.1)

predict.UComp: predict.UComp

Description

Forecasting using structural Unobseved Components models with prediction intervals

Usage

# S3 method for UComp
predict(object, newdata = NULL, n.ahead = NULL, level = 0.95, ...)

Value

A matrix with the mean forecasts and lower and upper prediction intervals

Arguments

object

Object of class “UComp”.

newdata

New output data to apply “UComp” object to.

n.ahead

Number of steps ahead to forecast or new inputs variables including their predictions.

level

Confidence level for prediction intervals.

...

Ignored.

Author

Diego J. Pedregal

Details

See help of UC.

See Also

UC, UCmodel, UCvalidate, UCfilter, UCsmooth, UCdisturb, UCcomponents

Examples

Run this code
if (FALSE) {
y <- log(AirPassengers)
m1 <- UCmodel(y, model = "llt/eq/arma(0,0)")
f1 <- predict(m1)
}

Run the code above in your browser using DataLab