Hello All,
I intend to test Granger Causality in presence of structural breaks, so I use the gcrobustvar command for the same. My N=37, and variables are log Real Health expenditure per capita and log Real GSDP per capita. So these are the commands I used to run the gcrobustvar command in Stata 16, but I am getting a conformability error r(503). The
tsset Id, yearly
g lnPcRealHealthexp = ln(Healthexp per capita)
g lnPcRealGSDP = ln(GSDP per capita)
matrix pvap0opt = (34,21)
matrix pvapiopt = (34,21)
matrix pvnybopt = (34,21)
matrix pvqlropt = (34,21)*Testing for Non-linear Granger Causality*
tsset Id, yearly
gcrobustvar lnPcRealHealthexp lnPcRealGSDP, pos(2,1) lags(1/3)
In the Stata manual on the command, in compatibility issues it says to do the following:
. The following files are required: gcrobustvar.ado, chowgmmstar3.ado, nyblomstar3.ado, pvcalc.ado, and pvalue.mmat.
. The matrices (pvap0opt[34,21], pvapiopt[34,21], pvnybopt[34,21], and pvqlropt[34,21]) in pvalue.mmat need to be imported in advance.
. The gcrobustvar command uses the matsqrt command. It can be found and installed in Stata by typing findit matsqrt in the Command window.
The second line seems to be the problem. Any suggestions on how to resolve this?
I intend to test Granger Causality in presence of structural breaks, so I use the gcrobustvar command for the same. My N=37, and variables are log Real Health expenditure per capita and log Real GSDP per capita. So these are the commands I used to run the gcrobustvar command in Stata 16, but I am getting a conformability error r(503). The
tsset Id, yearly
g lnPcRealHealthexp = ln(Healthexp per capita)
g lnPcRealGSDP = ln(GSDP per capita)
matrix pvap0opt = (34,21)
matrix pvapiopt = (34,21)
matrix pvnybopt = (34,21)
matrix pvqlropt = (34,21)*Testing for Non-linear Granger Causality*
tsset Id, yearly
gcrobustvar lnPcRealHealthexp lnPcRealGSDP, pos(2,1) lags(1/3)
In the Stata manual on the command, in compatibility issues it says to do the following:
. The following files are required: gcrobustvar.ado, chowgmmstar3.ado, nyblomstar3.ado, pvcalc.ado, and pvalue.mmat.
. The matrices (pvap0opt[34,21], pvapiopt[34,21], pvnybopt[34,21], and pvqlropt[34,21]) in pvalue.mmat need to be imported in advance.
. The gcrobustvar command uses the matsqrt command. It can be found and installed in Stata by typing findit matsqrt in the Command window.
The second line seems to be the problem. Any suggestions on how to resolve this?
Comment