Rev 30915 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{predict.HoltWinters}\alias{predict.HoltWinters}\title{prediction function for fitted Holt-Winters models}\description{Computes predictions and prediction intervals for models fitted bythe Holt-Winters method.}\usage{\method{predict}{HoltWinters}(object, n.ahead=1, prediction.interval = FALSE,level = 0.95, ...)}\arguments{\item{object}{An object of class \code{HoltWinters}.}\item{n.ahead}{Number of future periods to predict.}\item{prediction.interval}{logical. If \code{TRUE}, the lower andupper bounds of the corresponding prediction intervals are computed.}\item{level}{Confidence level for the prediction interval.}\item{\dots}{arguments passed to or from other methods.}}\value{A time series of the predicted values. If prediction intervals arerequested, a multiple time series is returned with columns \code{fit},\code{lwr} and \code{upr} for the predicted values and the lower andupper bounds respectively.}\references{C. C. Holt (1957)Forecasting seasonals and trends by exponentially weightedmoving averages,ONR Research Memorandum, Carnigie Institute 52.P. R. Winters (1960)Forecasting sales by exponentially weighted moving averages,\emph{Management Science} \bold{6}, 324--342.}\author{David Meyer \email{David.Meyer@wu-wien.ac.at}}\seealso{\code{\link{HoltWinters}}}\examples{m <- HoltWinters(co2)p <- predict(m, 50, prediction.interval = TRUE)plot(m, p)}\keyword{ts}