sales: Monthly product sales

Description Usage Format Source References Examples

Description

Monthly sales for a product with shortage indicators. Contains sales (first column) and stockout indicator (second column).

Usage

1

Format

time series

Source

Hyndman, R.J., Koehler, A.B., Ord, J.K., and Snyder, R.D., (2008) Forecasting with exponential smoothing: the state space approach, Springer

References

http://www.exponentialsmoothing.net

Examples

1
2
3
plot(msales[,1],main="Monthly sales of a product",ylab="Sales",xlab="Year")
points(msales,pch=(msales[,"stockouts"]==1)+1)
legend("bottomright",pch=1:2,legend=c("Excess stock","Stock shortage"))

Example output

Loading required package: forecast

expsmooth documentation built on May 2, 2019, 4:21 a.m.