Learn R Programming

tsintermittent (version 1.9)

crost.decomp: Croston's decomposition

Description

Apply Croston's decomposition on a time series.

Usage

crost.decomp(data,init=c("naive","mean"))

Arguments

data
Intermittent demand time series.
init
Initial values for intervals. This can be: 1. x - Numerical value; 2. "naive" - Initial interval is the first interval from start of time series; 3. "mean" - Initial interval is the mean of all in sample intervals.

Value

demand
Non-zero demand vector.
interval
Intervals vector.

See Also

crost, crost.ma.

Examples

Run this code
crost.decomp(ts.data1)

Run the code above in your browser using DataLab