<p>In your course they were likely talking about some specific case. Generally you often see more than one lag across applied work.</p>
<p>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:</p>
<p><span class="math-container">$$ y_t = \beta_0 + \sum_{i=1}^p \beta_i y_{t-i}+ \sum_{j=0}^q \gamma_jx_{t-j} +e_t$$</span></p>
<p>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.</p>
<p>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).</p>
<p>In R there are multiple ways how to implement these. One example is &quot;tsDyn&quot; package - this is mainly used to select optimum number of lags for VAR. For example you could run:</p>
<pre><code>install.packages(&quot;tsDyn&quot;) 
require(&quot;tsDyn&quot;)
data(barry)
test1 &lt;- lags.select(barry, lag.max = 12)
test1
Best AIC:  lag= 12 
Best BIC:  lag= 2 
Best HQ :  lag= 2 
</code></pre>
<p>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.</p>

CC BY-SA 4.0
2020-11-14T21:47:34.530Z
Thank you. I will check the textbook out
Rumi
CC BY-SA 4.0
2020-11-14T12:03:36.237Z
2020-11-14T13:09:37.370Z
2020-11-14T13:09:37.370Z
1muflon1
<p>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.</p>
<p>Thanks for your help!</p>

CC BY-SA 4.0
2020-11-14T12:11:44.707Z
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.
EB3112
<econometrics><time-series><r>
Time Series Analysis - What lag level is appropriate?
Rumi
# Time Series Analysis - What lag level is appropriate?

(Asked by: username_0 on 2020-11-14)

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!

**Tags:** econometrics, time-series, r
> **Comments:**
> **username_1**: 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.  

---

## 1 answers

### Answer by username_2 on 2020-11-14. Score: 1 | Accepted answer

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.

> **Comments:**
> **username_0**: Thank you. I will check the textbook out  

---

