Exercises
Download Time Series
- Get the Quandl code for the monthly retailers sales data in millions of dollars,
which are not seasonally adjusted, from the Federal Reserve Economic Data database (FRED)
either from the Quandl website or the
Rconsole. - Download all available data for this time series specifying the
typeargument of theQuandl()function that it matches the recommendation from thestl()help page.
- Get the Quandl code for the monthly retailers sales data in millions of dollars,
which are not seasonally adjusted, from the Federal Reserve Economic Data database (FRED)
either from the Quandl website or the
Decomposing Time Series
- Decompose your time series from exercise 1 with
stl()function assuming that the seasonal pattern is constant through time. - Seasonally adjust the time series and detrend it. This means removing the seasonal component and the trend component from the raw data.
- Decompose your time series from exercise 1 with