msales               package:expsmooth               R Documentation

_M_o_n_t_h_l_y _p_r_o_d_u_c_t _s_a_l_e_s

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

     data(msales)

_F_o_r_m_a_t:

     time series

_S_o_u_r_c_e:

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

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://www.exponentialsmoothing.net>

_E_x_a_m_p_l_e_s:

     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"))

