croston: Forecasts for intermittent demand using Croston's method

Description Usage Arguments Details Value Examples

Description

Returns forecasts and other information for Croston's forecasts applied to object.

Usage

1
croston(object, ...)

Arguments

object

FLVector

alpha

Smoothing parameter. Default value = 0.5 .

h

Number of periods for forecasting.

Details

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.

Value

An object containing details of the fitted model and forecasted values.

Examples

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)

Fuzzy-Logix/AdapteR documentation built on May 6, 2019, 5:07 p.m.