When preforming Johansen cointegration test for 2 time series (the simple case) you need to decide the lag you want to use. Doing the test for different lag levels returns different results: for some lag levels the null hypothesis can be rejected but for others it can't.
My question is what is the right method based on the input data to decide what lag I need to use?