Hello,

I would like to ask regarding my research. I am going to use the cointegration tests Trace and Eigen, but I need optimal lags for them. Then I want to use VAR or VECM model, but it will be based on results from cointegration tests. Should I use VARselect() function on data in levels or first order data I(0) as firstly I need to made the VAR model, but it requires data to be stationary, and my are stationary only when I made first differences. So please are my steps correct?:

1. VARselect() of optimal lag used on data in levels.

2. Cointegration test with optimal lag from 1. step but minus 1 as cointegration test should have one difference already in its tests.

3. VARselect() on differenced data and this lag used in VAR model or VECM based on cointegration results - but shouldn´t be the lag for VAR model and cointegration test the same? Because now I will have two different.

4. Test of VAR residuals on serial correlation via serial.test() function, do I have to use same lag length as in VAR model? Or can I use different lag length as used in VAR model. If I can use different lag length, than how to interpret or should I use for my VAR higher lag length that is without serial correlation? But always if my lag length is the same in serial correlation test and in VAR model, there is serial correlation, even if it is lag of order 20.

Thank you.

More Katarína Hudáková's questions See All
Similar questions and discussions