# Why is there a need to do OLS regression of VECM?

I am trying to use the R package "urca". It has functions cajorls and cajools, which do ordinary least squares (OLS) regression of restricted and unrestricted vector error correction model (VECM) respectively. Both functions take in the VECM estimated using Johansen procedure and return the regression parameters and cointegrating vectors.

I do not understand, why is there a need to do OLS regression of VECM? Using Johansen test on the data (by calling ca.jo) will give me the cointegrating vectors. What is the difference between cointegrating vectors of VECM and OLS regression of VECM?

Well ca.jo will give you the parameters for the long-run cointegrating relationship(s), but not the error correction/lags parameters, which are obtained by the cajools. Note that for alternative, slightly more direct way, you can also use the function VECM from package "tsDyn".