
# S3 method for HoltWinters
predict(object, n.ahead = 1, prediction.interval = FALSE,
level = 0.95, ...)
HoltWinters
.TRUE
, the lower and
upper bounds of the corresponding prediction intervals are computed.fit
,
lwr
and upr
for the predicted values and the lower and
upper bounds respectively.HoltWinters
require(graphics)
m <- HoltWinters(co2)
p <- predict(m, 50, prediction.interval = TRUE)
plot(m, p)
Run the code above in your browser using DataLab