In Giles and Godwin (2012) we provide EViews and R code that generates asymptotic p-values and the 1%, 5% and 10% asymptotic critical values for the Hl and Hc cointegration tests proposed by Johansen et al. for the situation where there are one or two structural breaks in the data at known points in the sample. These tests are readily implemented in EViews without the need to write any special code. The reader should be familiar with the Johansen et al. modifications to the usual Trace Test. A very readable and helpful discussion is provided by Joyeux (2007).
The EViews and R program files generate asymptotic p-values for user-supplied values of the Trace test statistics; the asymptotic critical values for various values of (p - r), where p is the number of variables in the VAR, and r is the number of cointegrating relations under test. This is achieved by (a) using the response surfaces in Table 4 of Johansen et al. to obtain the mean and variance of the desired asymptotic distribution; (b) using these two moments to "recover" the shape and scale parameters of a Gamma distribtion, which is then used to approximate the asymptotic sampling distributions of the test statistics, and provide the desired percentiles and p-values.
Last Update: 27 August, 2013
Contact: David Giles; email: firstname.lastname@example.org; Department of Economics, University of Victoria, P.O. Box 1700 STN CSC, Victoria, B.C., CANADA V8W 2Y2; Tel.: +1-250-721-8540