Hello,
Is there a command to retrieve the optimal max lag order based on a given information criterion when running the ADF test?
I need to carry out the ADF test on a large number of series. Next, for each series, I need to record the optimal lag order automatically suggested by say the AIC.
I tried to loop over the relevant cell content of the ADF table output but I am having a difficulty retrieving the lag order because the cell contains both strings and the need number of lag.
Thanks for your help.
Regards,
PK
Optimal AIC-based max lag ADF test
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Optimal AIC-based max lag ADF test
There's an undocumented option (that we really need to document...) to save all the useful stuff from the test.
will save the useful statistics from the unit root test into the vector myvector. The last element contains the number of selected lags.
Code: Select all
myseries.uroot(save=myvector)
will save the useful statistics from the unit root test into the vector myvector. The last element contains the number of selected lags.
Follow us on Twitter @IHSEViews
Re: Optimal AIC-based max lag ADF test
Many thanks indeed Dear Gareth!
Re: Optimal AIC-based max lag ADF test
pka wrote:Many thanks indeed Dear Gareth!
Hello Gareth,
I see the last element of the vector refers to the maximum lag length used.
Is it possible to retrieve the retained lag order for the test?
Thanks,
PK
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Optimal AIC-based max lag ADF test
I think that's the 2nd element?
Follow us on Twitter @IHSEViews
Re: Optimal AIC-based max lag ADF test
EViews Gareth wrote:I think that's the 2nd element?
Yes indeed. It is the one.
Many thanks.
Who is online
Users browsing this forum: No registered users and 37 guests