\HeaderA{predict.HoltWinters}{prediction function for fitted Holt-Winters models}{predict.HoltWinters}
\keyword{ts}{predict.HoltWinters}
\begin{Description}\relax
Computes predictions and prediction intervals for models fitted by
the Holt-Winters method.
\end{Description}
\begin{Usage}
\begin{verbatim}
## S3 method for class 'HoltWinters':
predict(object, n.ahead=1, prediction.interval = FALSE,
       level = 0.95, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] An object of class \code{HoltWinters}.
\item[\code{n.ahead}] Number of future periods to predict.
\item[\code{prediction.interval}] logical. If \code{TRUE}, the lower and
upper bounds of the corresponding prediction intervals are computed.
\item[\code{level}] Confidence level for the prediction interval.
\item[\code{...}] arguments passed to or from other methods.
\end{ldescription}
\end{Arguments}
\begin{Value}
A time series of the predicted values. If prediction intervals are
requested, a multiple time series is returned with columns \code{fit},
\code{lwr} and \code{upr} for the predicted values and the lower and
upper bounds respectively.
\end{Value}
\begin{Author}\relax
David Meyer \email{David.Meyer@wu-wien.ac.at}
\end{Author}
\begin{References}\relax
C. C. Holt (1957)
Forecasting trends and seasonals by exponentially weighted
moving averages,
\emph{ONR Research Memorandum, Carnegie Institute of Technology} \bold{52}.

P. R. Winters (1960)
Forecasting sales by exponentially weighted moving averages,
\emph{Management Science} \bold{6}, 324--342.
\end{References}
\begin{SeeAlso}\relax
\code{\LinkA{HoltWinters}{HoltWinters}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
require(graphics)

m <- HoltWinters(co2)
p <- predict(m, 50, prediction.interval = TRUE)
plot(m, p)
\end{ExampleCode}
\end{Examples}

