Hi Statalist,
I am running a mean group regression on the following dataset:
The code I want to run looks like:
but this gives me the following error:
I know this problem was potentially solved previously here but the OP deleted any comments on the thread.
Here, the command xtpmg2 comes from a fix from Jan Ditzen as an answer to this post.
Anyone know what's causing this problem and how I can resolve it?
Thanks,
Bailey
I am running a mean group regression on the following dataset:
Code:
. sum Variable | Obs Mean Std. dev. Min Max -------------+--------------------------------------------------------- cno | 560 16.8125 10.69376 1 32 year | 560 1987 10.10853 1970 2004 country | 0 growth | 544 2.220443 2.293302 -7.586336 9.476275 gdpph | 560 31425.64 12112.78 7706.522 96061.67 -------------+--------------------------------------------------------- gdpoecd | 560 26172.1 5549.888 17465.46 36227.84 tau_k | 293 25.06294 5.492642 14.29711 42.66098 tau_h | 293 28.20793 8.665205 9.019481 44.85106 tau_c | 293 21.20655 9.551219 6.971512 56.56422 topstat | 80 47.94318 6.313459 38.95 60 -------------+--------------------------------------------------------- topstatoecd | 80 43.05456 .9212149 41.69681 44.30247 corptax | 64 30.71305 3.691514 22.12 36.433 corptaxoecd | 64 28.09793 .9177721 26.96863 29.47705 newrdis | 560 23.79259 5.910921 4.581 36.781 newrdisoecd | 560 20.84737 1.320989 17.224 22.209 -------------+--------------------------------------------------------- neworndis | 560 10.11505 3.135774 2.907 16.892 neworndiso~d | 560 10.02971 .704356 8.613 11.002 product | 151 23.30063 2.846734 16.3717 30.25604 nonproduct | 151 21.51662 6.781814 10.39179 35.22918 totalexpen~e | 265 43.89122 7.985306 24.27693 64.16204 -------------+--------------------------------------------------------- totalrevenue | 265 42.32334 8.706575 22.74396 57.87862 deficit | 265 -1.567896 3.954452 -9.432231 15.06486 gfcfgdp | 558 20.14013 3.698307 11.11179 32.50194 employment~h | 516 1.012836 1.765756 -7.140246 7.926316 employment~d | 144 1.018232 .4171962 .320178 1.615237 -------------+--------------------------------------------------------- employment | 509 17126.18 27745.68 114.3571 139251.9 hucap3 | 523 10.46791 2.108801 3.175704 13.42321 lngdpph | 560 10.28598 .3815435 8.949822 11.47275 yearsedugr~h | 508 .0750649 .0433725 -.008481 .3988 surplus | 265 1.567896 3.954452 -15.06486 9.432232 -------------+--------------------------------------------------------- _est_PMG | 560 .8089286 .3934967 0 1 _est_pmg | 560 .8089286 .3934967 0 1 _est_MG | 560 .8089286 .3934967 0 1 _est_mg | 560 .8089286 .3934967 0 1
Code:
. xtpmg2 d.growth d.l(growth) d.l(0/1)(tau_k tau_h tau_c product surplus gfcfgdp employmentgrowth yearsedugrowth), /// > lr(l.growth tau_k tau_h tau_c product surplus gfcfgdp employmentgrowth yearsedugrowth l.lngdpph) /// > ec(ec_mg) replace mg
Code:
expression (-_b[tau_k]/_b[L.growth]) evaluates to missing
Here, the command xtpmg2 comes from a fix from Jan Ditzen as an answer to this post.
Anyone know what's causing this problem and how I can resolve it?
Thanks,
Bailey
Comment