Page 1 of 1

Rolling Cointegration

Posted: Fri Nov 22, 2013 3:45 am
by pgupta
Dear Gareth,

I tried to create a code to achieve three purposes:
1. Estimate rolling trace statistic
2) Estimate rolling "adjustment coefficients" of a VEC model.
3) Estimate rolling LR statistic for testing Weak Exogeneity of the ECM term in the VEC model.

Sir, while the code is working fine for the above stated requirements, I have one more requirement:
To store the standard errors and t-stat of these "rolling adjustment coefficients". I am not able to do this. I will be very obliged if you could please help me with this.

Thanks a ton!

Re: Rolling Cointegration

Posted: Sat Nov 23, 2013 11:42 am
by EViews Gareth
What coefficients?

Re: Rolling Cointegration

Posted: Sun Nov 24, 2013 7:15 am
by pgupta
The adjustment coefficient (alpha) (A(1,1) in my case). As defined on Pg. 575 of Eviews 8 Users Guide II.

Re: Rolling Cointegration

Posted: Sun Nov 24, 2013 5:17 pm
by EViews Gareth
You can probably get the standard errors from the coefficient standard errors matrix, v.@coefcov. You'll have to calculate the t-stats manually.

Re: Rolling Cointegration

Posted: Sun Nov 24, 2013 9:40 pm
by pgupta
Thank you Gareth! :)

Re: Rolling Cointegration

Posted: Thu Jul 06, 2017 9:48 am
by fcb85
Dear Gareth,
I'm using similar code but for a larger sample (4157 observations, 8 variables) and smaller rolling window (500). Unfortunately the program does not run till the end of the sample, it turns "near singular matrix" error after 1100 replications. Do I have to define the matrix in a different manner? The same error is occurred when I use "pgupta" code

Re: Rolling Cointegration

Posted: Thu Jul 06, 2017 10:31 am
by EViews Gareth
Looks good to me.

Re: Rolling Cointegration

Posted: Fri Jul 07, 2017 6:38 am
by fcb85
Then why it breaks out the code after 1100 replications, when normally it should perform 3657 replications. However, I've noticed that the break it varies if I change either number of variables or size of rolling window. Any support is more than welcome!

Re: Rolling Cointegration

Posted: Fri Jul 07, 2017 7:31 am
by EViews Gareth
Your data probably results in a singular matrix.