Revision eeaa66e0c46ce61f52410cc9cf200620c347a369 authored by Rob J Hyndman on 22 April 2013, 00:00:00 UTC, committed by Gabor Csardi on 22 April 2013, 00:00:00 UTC
1 parent 38c61ae
sindex.Rd
\name{sindexf}
\alias{sindexf}
\title{Forecast seasonal index}
\usage{sindexf(object, h)
}
\arguments{
\item{object}{Output from \code{\link[stats]{decompose}} or \link[stats]{stl}.}
\item{h}{Number of periods ahead to forecast}
}
\description{Returns vector containing the seasonal index for \code{h} future periods.
If the seasonal index is non-periodic, it uses the last values of the index.}
\value{Time series}
\author{Rob J Hyndman}
\examples{uk.stl <- stl(UKDriverDeaths,"periodic")
uk.sa <- seasadj(uk.stl)
uk.fcast <- holt(uk.sa,36)
seasf <- sindexf(uk.stl,36)
uk.fcast$mean <- uk.fcast$mean + seasf
uk.fcast$lower <- uk.fcast$lower + cbind(seasf,seasf)
uk.fcast$upper <- uk.fcast$upper + cbind(seasf,seasf)
uk.fcast$x <- UKDriverDeaths
plot(uk.fcast,main="Forecasts from Holt's method with seasonal adjustment")
}
\keyword{ts}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...