Data analysis - unemployment I
In the video, we fit a seasonal ARIMA model to the log of the monthly AirPassengers data set. You will now start to fit a seasonal ARIMA model to the monthly US unemployment data, unemp, from the astsa package.
The first thing to do is to plot the data, notice the trend and the seasonal persistence. Then look at the detrended data and remove the seasonal persistence. After that, the fully differenced data should look stationary.
The astsa package has been pre-loaded for you.
Deze oefening maakt deel uit van de cursus
ARIMA Models in R
Oefeninstructies
- Plot the monthly US unemployment (
unemp) time series fromastsa. Note trend and seasonality. - Detrend and plot the data. Save this as
d_unemp. Notice the seasonal persistence. - Seasonally difference the detrended series and save this as
dd_unemp. Plot this new data and notice that it looks stationary now.
Praktische interactieve oefening
Probeer deze oefening eens door deze voorbeeldcode in te vullen.
# Plot unemp
# Difference your data and plot it
d_unemp <-
# Seasonally difference d_unemp and plot it
dd_unemp <- diff(___, lag = 12)