Dear all,
I want to peform a unit root test using the Augmentd Dickey Fuller test. Therefore, I type in
dfuller var, trend lags(OL)
where OL is the optimum number of lags.
To specify OL, I want to use the Schwert criterion. So I type in
. dis int(12*(T/100)^0.25)
13
where T is the sample size (the rest values are tailed-made). My result tells me the that maximun number of lags I should start with is 13.
Now, in order to choose how may of these lags I should eventually include in the ADF regression, I have to run the ADF regression for 1,2...,13 lags. and calculate for each regression the AIC/BIC.
For example for the ADF with first lagged difference I run
regress d.var l.var L1.d.var trend
For the ADF with tw0 lagged differences I run
regress d.var l.var L1.d.var L2.d.var trend
and so on and so forth.
But it is difficult to do that for each of the 13 regressions separately and then choose the model that minimizes the AIC or BIC criterion..
Is there a consice way to get the results for AIC/BIC for all these models in one table?
Best,
John,
Stata 14SE
Windows 10
I want to peform a unit root test using the Augmentd Dickey Fuller test. Therefore, I type in
dfuller var, trend lags(OL)
where OL is the optimum number of lags.
To specify OL, I want to use the Schwert criterion. So I type in
. dis int(12*(T/100)^0.25)
13
where T is the sample size (the rest values are tailed-made). My result tells me the that maximun number of lags I should start with is 13.
Now, in order to choose how may of these lags I should eventually include in the ADF regression, I have to run the ADF regression for 1,2...,13 lags. and calculate for each regression the AIC/BIC.
For example for the ADF with first lagged difference I run
regress d.var l.var L1.d.var trend
For the ADF with tw0 lagged differences I run
regress d.var l.var L1.d.var L2.d.var trend
and so on and so forth.
But it is difficult to do that for each of the 13 regressions separately and then choose the model that minimizes the AIC or BIC criterion..
Is there a consice way to get the results for AIC/BIC for all these models in one table?
Best,
John,
Stata 14SE
Windows 10
Comment