How to perform Johansen cointegration test in VAR with three variables?

By Divya Dhuria & Priya Chetty on September 27, 2018

The previous article showed lag selection and stationarity for Vector Auto Regression (VAR) with three variables; Gross Domestic Product (GDP), Gross Fixed Capital Formation (GFC) and Private Final Consumption (PFC). This article shows the co-integration test for VAR with three variables. To perform the Johansen cointegration test, follow the below steps.

  1. Click on ‘Statistics’ on Result window
  2. Select ‘Multivariate Time-series’
  3. Select ‘Co-integrating rank of a VECM’
Figure 1: STATA pathway for Johansen cointegration test for VAR with three variables
Figure 1: STATA pathway for Johansen cointegration test for VAR with three variables

The ‘vecrank’ dialogue box will appear. Select values for two options ‘Dependent variables’ and ‘Maximum lags to be included in underlining VAR Model’.

Figure 2: Vecrank window on STATA for Johansen co-integration analysis in VAR model with three variables
Figure 2: Vecrank window on STATA for Johansen co-integration analysis in VAR model with three variables

In ‘Dependent variables’, select the three-time series variables GDP, GFC and PFC. The co-integration analysis takes the case of non-stationary variables to check for long-term causality. Therefore take GDP, GFC and PFC instead of their first differences. Next, select the number of lags. In this case, conduct lag selected criteria similar to the previous analysis with the number of lags is 8 as shown in the figure above. Click on ‘OK’.

Click on the ‘Reporting’ tab. Select ‘Report maximum-eigenvalue statistic’ as shown in the figure below. Then click on ‘OK’.

Figure 3: ‘Reporting’ tab of vecrank window on STATA for Johansen co-integration test in VAR with three variables
Figure 3: ‘Reporting’ tab of vecrank window on STATA for Johansen co-integration test in VAR with three variables

Johansen cointegration test results

The results for the Johansen cointegration test will appear.

Figure 4: Result of Johansen cointegration test for VAR model with three variables in STATA
Figure 4: Result of Johansen cointegration test for VAR model with three variables in STATA
Command
vecrank gdp gfc pfc, trend(constant) lags(8) max

Interpret the result of the Johansen cointegration test in parts. First, converge the focus towards three columns; maximum rank, trace statistics or max statistics and critical values.

Maximum rank zero

Starting from maximum rank zero, the null and alternative hypotheses are as follows:

  • Null hypothesis: There is no cointegration.
  • Alternative hypothesis: There is cointegration.
Figure 5: Result of Johansen cointegration test for VAR with three variables in STATA
Figure 5: Result of Johansen cointegration test for VAR with three variables in STATA

At maximum rank zero, the trace statistic (55.177) exceeds critical values (29.68). Therefore reject the null hypothesis so that the time series variables GDP, PFC and GFC are cointegrated. Similarly, for max statistics, the value 40.7477 exceeds a critical value of 20.97, thus rejecting the null hypothesis. Thus, as per maximum rank zero, GDP, GFC and PFC are cointegrated.

Maximum rank one

For maximum rank one, the null and alternative hypotheses are as follows:

  • Null hypothesis: There is a cointegration of equation 1.
  • Alternative hypothesis: There is no cointegration of equation 1.
Figure 6: Result of Johansen cointegration test for VAR with three variables in STATA
Figure 6: Result of Johansen cointegration test for VAR with three variables in STATA

At maximum rank one, the trace statistic (14.4298) does not exceed critical values (15.41). Therefore accept the null hypothesis that there is cointegration of one equation. Similarly, for max statistics, the value 12.4140 do not exceed a critical value of 14.07, therefore accepting the null hypothesis. Thus, as per maximum rank one, GDP, GFC and PFC are cointegrated of one equation. The significance of equation one will be explained in the next article.

Maximum rank two

For maximum rank two, the null and alternative hypotheses are as follows:

  • Null hypothesis: There is a cointegration of equation 2.
  • Alternative hypothesis: There is no cointegration of equation 2.
Figure 7: Result of Johansen cointegration test for VAR model with three variables in STATA
Figure 7: Result of Johansen cointegration test for VAR model with three variables in STATA
Offer ID is invalid

At maximum rank two, the trace statistic (2.0158) does not exceed critical values (3.76). Therefore accept the null hypothesis that there is cointegration of two equations. Similarly, for max statistics, the value 2.0158 does not exceed a critical value of 3.76, thus accepting the null hypothesis. Thus, as per maximum rank two, GDP, GFC and PFC are cointegrated of two-equation.

Since there is cointegration of the three variables, a vector error correction model (VECM) will be the appropriate model to apply. Therefore the next article will show how to run a VECM in STATA.

I am a management graduate with specialisation in Marketing and Finance. I have over 12 years' experience in research and analysis. This includes fundamental and applied research in the domains of management and social sciences. I am well versed with academic research principles. Over the years i have developed a mastery in different types of data analysis on different applications like SPSS, Amos, and NVIVO. My expertise lies in inferring the findings and creating actionable strategies based on them. 

Over the past decade I have also built a profile as a researcher on Project Guru's Knowledge Tank division. I have penned over 200 articles that have earned me 400+ citations so far. My Google Scholar profile can be accessed here

I now consult university faculty through Faculty Development Programs (FDPs) on the latest developments in the field of research. I also guide individual researchers on how they can commercialise their inventions or research findings. Other developments im actively involved in at Project Guru include strengthening the "Publish" division as a bridge between industry and academia by bringing together experienced research persons, learners, and practitioners to collaboratively work on a common goal. 

 

Discuss

2 thoughts on “How to perform Johansen cointegration test in VAR with three variables?”