I have to do unit root test in R. I want to know which method to use in
tseries::adf.test() in order to compute the lag length.
With other functions, such as
ur.df(), we can select the criterion to compute the lag length. I've see that
adf.test() uses a formula equal
k, but I don't understand the meaning of that formula.