Hello statalisters:
I will be very greatful for any help because I find some strange results when running my dfuller loop. The loop is
Code:
forval c = 1/26 { foreach k of varlist Y Yx D Px PX e M m X x PM R Kp KP { local i = optimal_lag dfuller `k' if Cou==`c', lags(`i') trend } }
I have a varibale called optimal_lag that aims to input the optimal lag in each case, using my local `i'
The results show:
A different Test Statistic and different p-values, for each dfuller (26*14=364 tests) but they all show the same Critical Values.
e-g:
Code:
Augmented Dickey-Fuller test for unit root Number of obs = 39 ---------- Interpolated Dickey-Fuller --------- Test 1% Critical 5% Critical 10% Critical Statistic Value Value Value ------------------------------------------------------------------------------ Z(t) -2.856 -4.251 -3.544 -3.206 ------------------------------------------------------------------------------ MacKinnon approximate p-value for Z(t) = 0.1770
Thank you in advanced.
Manuel
*********************************************
Update:
I´ve changed my code to add a return list after every dfuller and I see that my local `i' is not feeding the optimal_lag but every time the same lag = 1
Thanks for any help.
Manuel.
Comment