| crost.decomp | R Documentation |
Decompose an intermittent demand time series into the non-zero demand and the intervals between demands, as used by Croston's method.
crost.decomp(data, init = c("naive", "mean"))
data |
Intermittent demand time series. This can be a vector, a |
init |
Initial value for the intervals. This can be:
|
A list containing:
demand |
Non-zero demand vector. |
interval |
Intervals vector. |
Nikolaos Kourentzes, nikolaos@kourentzes.com
crost.
crost.decomp(ts.data1)
# The first interval replaced by the mean interval
crost.decomp(ts.data1, init="mean")$interval
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.