This tutorial tells about how to do seasonal decomposition by moving average in R.

There are two kinds of classical decomposition models:

- Additive model: \(x_t=m_t+s_t+\epsilon_t\)
- Multiplicative model: \(x_t=m_t\cdot s_t+\epsilon_t\)

Read more R in Time Series: Seasonal Decomposition By Moving Average