Learn R Programming

m5 (version 0.1.1)

m5_demand_type: Classify time series of the particular items

Description

Each time series in the dataset can be assigned one of the following classes:

Usage

m5_demand_type(data)

Value

A data.table containing item ids (item_id and store_id), ADI and CV2 scores (adi and cv2 respectively) as well as the final class chosen based on the aforementioned scores (demand_type).

Arguments

data

The result of the m5_prepare function; tiny_m5 can be passed as well.

Details

  • Smooth (ADI < 1.32 and CV² < 0.49).

  • Intermittent (ADI >= 1.32 and CV² < 0.49)

  • Erratic (ADI < 1.32 and CV² >= 0.49)

  • Lumpy (ADI >= 1.32 and CV² >= 0.49)

References

Syntetos A. A. and Boylan J. E., 2005, The accuracy of intermittent demand estimates. International Journal of Forecasting 21: 303–314 Forecast Error Measures: Intermittent Demand

Examples

Run this code
head(m5_demand_type(tiny_m5))

Run the code above in your browser using DataLab