croston(x, h=10, alpha=0.1)
"forecast"
is a list containing at least the following elements:forecast
.object
itself or the time series used to create the model stored as object
).summary
is used to obtain and print a summary of
the results, while the function plot
produces a plot of the
forecasts.The generic accessor functions fitted.values
and
residuals
extract useful features of the value returned by
croston
and associated functions.
alpha
.Note that prediction intervals are not computed as Croston's method has no underlying stochastic model.
Shenstone, L., and Hyndman, R.J. (2005) "Stochastic models underlying Croston's method for intermittent demand forecasting". Journal of Forecasting, 24, 389-402.
ses
.x <- rpois(20,lambda=.3)
fcast <- croston(x)
plot(fcast)
Run the code above in your browser using DataLab