Re: Gregory-Hansen cointegration test
Posted: Sun Aug 26, 2012 9:06 am
Dear all,
I am completely new user in Eviews and i couldn't manage to run the program ! can u please help me ?
The program starts like this :
'Gregory-Hansen Cointegration Test
'Reference: Gregory, A. W. and Hansen, B. E. (1996). "Residual-Based Tests for Cointegration in Models with Regime Shifts", Journal of Econometrics, Vol. 70, pp. 99-126.
call greghansen(y,x,2,"aic",6)
' ----------------------------------------------------------------------------------------------------
' Arguments
'-----------------------------------------------------------------------------------------------------
'series Y ' dependent variable
'group G ' group of independent variable(s) (including single series)
'scalar Model ' 2 = Level Shift, 3 = Level Shift with Trend, 4 = Regime Shift
'scalar Maxlag ' Maximum number of lags for unit root testing
'string %Criterion ' Selection criteria for unit root testing (i.e. aic / sic / hqc)
' ----------------------------------------------------------------------------------------------------
Where should i insert the variable names in order to run it ?
thanks in advance ,
Thomas
I am completely new user in Eviews and i couldn't manage to run the program ! can u please help me ?
The program starts like this :
'Gregory-Hansen Cointegration Test
'Reference: Gregory, A. W. and Hansen, B. E. (1996). "Residual-Based Tests for Cointegration in Models with Regime Shifts", Journal of Econometrics, Vol. 70, pp. 99-126.
call greghansen(y,x,2,"aic",6)
' ----------------------------------------------------------------------------------------------------
' Arguments
'-----------------------------------------------------------------------------------------------------
'series Y ' dependent variable
'group G ' group of independent variable(s) (including single series)
'scalar Model ' 2 = Level Shift, 3 = Level Shift with Trend, 4 = Regime Shift
'scalar Maxlag ' Maximum number of lags for unit root testing
'string %Criterion ' Selection criteria for unit root testing (i.e. aic / sic / hqc)
' ----------------------------------------------------------------------------------------------------
Where should i insert the variable names in order to run it ?
thanks in advance ,
Thomas