View source: R/UCS3functions.R
predict.UComp | R Documentation |
Forecasting using structural Unobseved Components models with prediction intervals
## S3 method for class 'UComp'
predict(object, newdata = NULL, n.ahead = NULL, level = 0.95, ...)
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. |
See help of UC
.
A matrix with the mean forecasts and lower and upper prediction intervals
Diego J. Pedregal
UC
, UCmodel
, UCvalidate
, UCfilter
, UCsmooth
,
UCdisturb
, UCcomponents
## Not run:
y <- log(AirPassengers)
m1 <- UCmodel(y, model = "llt/eq/arma(0,0)")
f1 <- predict(m1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.