Description Usage Arguments Details Value Examples
Returns forecasts and other information for Croston's forecasts applied to object.
1 |
object |
FLVector |
alpha |
Smoothing parameter. Default value = 0.5 . |
h |
Number of periods for forecasting. |
Based on Croston's (1972) method for intermittent demand forecasting, also described in Shenstone and Hyndman (2005). Croston's method involves using simple exponential smoothing (SES) on the non-zero elements of the time series and a separate application of SES to the times between non-zero elements of the time series. The smoothing parameters are denoted by alpha.
An object containing details of the fitted model and forecasted values.
1 2 3 4 5 6 | set.seed(100)
x<-rnorm(1000)
x <- x[x>0]
flv<-as.FLVector(x)
flobj<-croston(object = flv, h=9, alpha = .1)
robj<-croston(object = x, h=9,alpha = .1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.