Gregory-Hansen Cointegration Test

For econometric discussions not necessarily related to EViews.

Moderators: EViews Gareth, EViews Moderator

nndzama
Posts: 5
Joined: Thu May 09, 2019 8:49 am

Gregory-Hansen Cointegration Test

Postby nndzama » Thu May 09, 2019 9:06 am

Greetings

When I try to run the run Gregory Hansen Cointegration Test I get this error:Near singular matrix error. Regressors may be perfectly
collinear in "DO_ GHC.LS Y C (@TREND>6-2) G"[/b].[/u] I have tried all the tricks I know but no solution. I only have 1 dependent variable (exports) and 1 independent variable (imports).

Please assist.

Kind Regards
Nwabisa

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: Gregory-Hansen Cointegration Test

Postby startz » Thu May 09, 2019 10:07 am

What values do you see for the series

Code: Select all

(@TREND>6-2)
?

nndzama
Posts: 5
Joined: Thu May 09, 2019 8:49 am

Re: Gregory-Hansen Cointegration Test

Postby nndzama » Thu May 09, 2019 10:18 pm

Hi Startz

I also have no idea where is that coming from (@Trend>6-2, it pops up when I run the program. All I know is that I selected REGIME SHIFT model because I want to capture both change in intercept and trend.

Kind Regards
Nwabisa

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13317
Joined: Tue Sep 16, 2008 5:38 pm

Re: Gregory-Hansen Cointegration Test

Postby EViews Gareth » Thu May 09, 2019 11:30 pm

You might want to post your workfile and exact instructions on what you are doing.
Follow us on Twitter @IHSEViews

nndzama
Posts: 5
Joined: Thu May 09, 2019 8:49 am

Re: Gregory-Hansen Cointegration Test

Postby nndzama » Thu May 09, 2019 11:53 pm

Hi Gareth

I have attached my workfile and G-H program. The study examines the sustainability of the current account. The aim of running this test is to find if the long-run relationship exists between exports and imports and account for any structural breaks.

Kind Regards
Nwabisa
Attachments
real exports and imports.wf1
(46.48 KiB) Downloaded 274 times
g_h structural breaks program.prg
(4.76 KiB) Downloaded 317 times

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: Gregory-Hansen Cointegration Test

Postby startz » Fri May 10, 2019 5:56 am

The problem is that LRX and LRM_ are only defined from 2009 and that @TREND>6-2 is always 1 in this period, hence collinear with the intercept.

As a guess, try setting the smpl to the period in which all your variables are valid.


Return to “Econometric Discussions”

Who is online

Users browsing this forum: Google [Bot] and 26 guests