Univariate time series
Stata 13.1 introduces four new features for univariate time series:
Individually, none of these features are earth shattering. However, the first three are some of my go-to concepts when teaching time-series analysis. Let’s use an example to see why.
Here is a graph of changes in monthly U.S. civilian unemployment rates for the period 1948–2011.
We fit an ARIMA model with two autoregressive (AR) terms, first-differencing, and no moving-average terms.
The AR parameters are statistically significant, and they indicate a moderate degree of temporal dependence.
Inference after ARIMA requires that the ARMA (autoregressive moving-average) process be covariance stationary. The stationarity of an ARMA process depends on the AR parameters. The inverse roots of the AR polynomial must all lie inside the unit circle for the process to be stationary. We use the new estat aroots command to examine this requirement:
. estat aroots Eigenvalue stability condition
The ARMA process appears to be stationary because both inverse AR roots lie well inside the unit circle.
A crucial aspect of time-series processes are their autocorrelations. The autocorrelations provide a scale-free measure of the dependence structure of the process. We can obtain a graph of this structure using the new estat acplot command after estimating our ARIMA model:
. estat acplot, lags(10)
The graph shows that the autocorrelations decay exponentially toward 0, which is typical of a stationary AR process with positive coefficients.
We often want to know how an exogenous shock feeds through our model and affects the series. This response, measured over time, is called the impulse–response function (IRF).
We create an IRF for our ARIMA model by typing
. irf create ar2, set(myirf)
and then graph that IRF by typing
. irf graph irf
The trajectory of the IRF shows that a positive shock initially causes an increase in unemployment but that the increase nears 0 by 5 months and completely dies out after 7 or 8 months.
See New in Stata 14 for more about what was added in Stata 14.