VECM in STATA for two cointegrating equations

In the previous article, Johansen cointegration test revealed the cointegration between time series Gross Domestic Product (GDP), Private Final Consumption (PFC) and Gross Fixed Capital Formation (GFC), containing up to two cointegrating equations. Therefore, unrestricted Vector Auto Regression (VAR) is not applicable in such cases. Vector Error Correction Model (VECM) is a special case of VAR which takes into account the cointegrating relations among the variables.

Vector Error Correction Model (VECM) in STATA

To start with VECM, follow these steps:

  • Click on ‘Statistics’ in the main tab
  • Select ‘Multivariate Time Series’
  • Select ‘Vector Error-Correction Model’
Figure 1: Pathway for VECM in STATA

Figure 1: Pathway for VECM in STATA

The ‘vec’ dialogue box will appear as shown in the figure below. Fill three options; ‘Dependent variables’, ‘Number of co-integrating equations’  and ‘Maximum lag’.

Figure 2: Window for VECM in STATA

Figure 2: Window for VECM in STATA

In ‘Dependent variables’ select ‘gdp’, ‘gfc’ and ‘pfc’, using the drop-down menu. In ‘Number of co-integrating equations (rank)’, select ‘2’, since the previous article showed two cointegrating equations using the Johansen cointegration test. Finally in ‘Maximum lag to be included’, select ‘8’, as the previous article showed 8 lags. Click on ‘OK’.

Figure 3: Window for VECM in STATA

Figure 3: Window for VECM in STATA

The results will appear as shown in the figure below. Since this case has 8 lags and two equations, the results are lengthy. For more clarity, the explanation is broken down into parts.

Part I of results of VECM in STATA

This contains the STATA command showing in the result window with information about all the variables as shown in the figure below. For instance, VECM has taken the first difference of these variables, such that they are represented as D_gdp, D_gfc, and D_pfc. Further, the R-square value of all three variables are good enough to justify their causality, and p values close to zero also indicates significance.

Figure 4: Part 1 of Results of VECM in STATA

Figure 4: Part 1 of Results of VECM in STATA

Part II of VECM in STATA

This part of the result shows the regression equations by taking ‘D_gdp’ as dependent and lagged values of GFC and PFC as independent variables as shown in the figure below. The interpretation is as follows:

  1. ‘ce1’ and ‘ce2’ represent two cointegrating equations. To ascertain the long-term causality between GDP and PFC and GFC, the ‘ce1’ and ‘ce2’ have to show a negative coefficient and a significant p-value. As the figure below shows, both the equations do not have negative coefficient but ‘ce2’ has a significant p-value of 0.011. Since all two conditions are missing here, this VECM do not show any long-term causality between GDP and the other two variables PFC and GFC.
  2. Furthermore, to examine the short-term causality between variables, see individual lag coefficients and p values for each independent variable (figure below). Thus this part explains the lagged values of GFC and PFC for GDP. As per the result, the only 1st lag of GFC is significant (p-value is 0.00), apart from that no other lag, even of PFC have no significance level. That means the only first lag of GFC has a short-term causality with GDP.
Figure 5: Part 2 of results of VECM in STATA

Figure 5: Part 2 of results of VECM in STATA

Part III of VECM in STATA

Similarly, the results of VECM go forward by assuming each of remaining variable as dependent and other as the independent. For instance, ‘D_gfc’ is dependent and ‘D_pfc’ is independent (figures below).

  1. In the case of GFC, a long-term causality from GDP and PFC to GFC is noticeable because ‘ce2’ equation, in this case, has both negative coefficient and significant p-value.
  2. A short-term causality is evident only in case of PFC that too on seventh lag with significant p values 0.000.
  3. In case of PFC, a long-term causality from GFC and GDP to PFC is absent as both ‘ce1’ and ‘ce2’ equations, in this case, have both non-negative coefficient and insignificant p-value.
  4. In the case of PFC, a short-term causality is evident in case of 1st lag of GFC and GDP with significant p values 0.000.
Figure 5: Steps 3, 4 and 5 of VECM results in STATA

Figure 5: Steps 3, 4 and 5 of VECM results in STATA

Figure 6: Step 6 of VECM results in STATA

Figure 6: Step 6 of VECM results in STATA

To ensure whether the VECM is correctly specified or not, a set of diagnostics tests such as tests for normality, serial correlation and heteroskedasticity need to be performed. The next article will show how to conduct these diagnostics tests in STATA.

Divya Dhuria

Divya Dhuria

Research analyst at Project Guru
DIvya has a keen interest in policy making and wealth management. She is a Master in Economics from Gokhale Institute of Politics and Economics. She has been trained in the econometric techniques to assess different possible economic relationships. She hascontributed to the working paper on National Rural Health Mission at Institute of economic growth, Delhi. Along with academical growth, she likes to explore and visit different places in her spare time.
Divya Dhuria

Related articles

  • How to perform Johansen cointegration test in VAR with three variables? 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.
  • Lag selection and cointegration test in VAR with two variables The previous article showed that the three-time series values Gross Domestic Product (GDP), Gross Fixed Capital Formation (GFC) and Private Final Consumption (PFC) are non-stationary. Therefore they may have long-term causality. The general assumption, in this case, is that consumption […]
  • How to perform regression analysis using VAR in STATA? In multivariate time series, the prominent method of regression analysis is Vector Auto-Regression (VAR). It is important to understand VAR for more clarity.
  • How to test and diagnose VECM in STATA? This article explains testing and diagnosing VECM in STATA to ascertain whether this model is correct or not. Among diagnostic tests, common ones are tested for autocorrelation and test for normality.
  • ARIMA modeling for time series analysis in STATA In the previous article, all possibilities for performing Autoregressive Integrated Moving Average (ARIMA) modeling for the time series GDP were identified as under. S. […]

Discuss

We are looking for candidates who have completed their master's degree or Ph.D. Click here to know more about our vacancies.