Optimal AIC-based max lag ADF test
Posted: Tue Aug 13, 2019 6:17 am
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
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