2
$\begingroup$

In my undergraduate econometrics class we were taught the basics of time series analysis. We were basically told to use a model with a one period time lag (lag = 1). However, I wonder that there must be cases where more lags might be appropriate. What would those instances look like? Is there a way to find what might be the optimal number of lags to look at for a particular time series. Could you guide me to appropriate resources that deal with the intuitive Math for this and possibly an implementation of how to find optimal lags in R if possible.

Thanks for your help!

$\endgroup$
1
  • 1
    $\begingroup$ My intuition on why your course would focus on a model with only one lag, is because it is not only the simplest to specify/communicate to students, but also because of the assumption that your model is stationary. If stationary and weakly dependent (call this ergodic together), then the immediate past should communicate sufficient information for estimation. Yet, I agree below with the 1M1 that there are formal information criterion tests for specifying the correct lag-length. $\endgroup$
    – EB3112
    Nov 14, 2020 at 12:11

1 Answer 1

1
$\begingroup$

In your course they were likely talking about some specific case. Generally you often see more than one lag across applied work.

For example, one of standard time series models is the Autoregressive Distributed Lag (ARDL) model. In such model you often need to include several lags. The general ARDL(p,q) model looks like:

$$ y_t = \beta_0 + \sum_{i=1}^p \beta_i y_{t-i}+ \sum_{j=0}^q \gamma_jx_{t-j} +e_t$$

where you would typically want to choose the lag order to remove autocorrelation from the model. This is just an example, in many time series models you will want to include multiple lags for example also in VAR, AR, ARIMA and many other models. It is impossible to provide exhaustive overview of these models but you can have look at Verbeek (2008). A Guide to Modern Econometrics. 4th ed chapters 8-9 for an overview.

One way of how to select optimum number or lags is with information criteria such as Akaike or Schwartz Bayesian Information criterion (again just examples there are more of these - see the above mentioned source).

In R there are multiple ways how to implement these. One example is "tsDyn" package - this is mainly used to select optimum number of lags for VAR. For example you could run:

install.packages("tsDyn") 
require("tsDyn")
data(barry)
test1 <- lags.select(barry, lag.max = 12)
test1
Best AIC:  lag= 12 
Best BIC:  lag= 2 
Best HQ :  lag= 2 

So in the data above based on Akaike (AIC) we should include 12 lags in VAR model run on these data, according to Schwartz (BIC) and Hannan-Quinn (HQ) only 2 lags. As you can see this criterions do not always agree together so you also have to exercise some discretion but it is beyond scope of this SE answer to fully explain in all cases how to apply these. You can again have a look at the textbook I recommended.

$\endgroup$
1
  • $\begingroup$ Thank you. I will check the textbook out $\endgroup$
    – Rumi
    Nov 14, 2020 at 21:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.