I am performing ADF tests with the help of the function ur.df() from package urca. It looks like this:
ur.df(MySeries, type = "trend", lags = 8, selectlags = "AIC")
According to the help section for the function, when lags are set and when selectlags are not "Fixed", lags should be chosen with the information criterion. However, the function NEVER chooses anything else than the maximum number of lags specified with lags.
Do I miss something? How can I get the function to actually use the information criterion?