Dear all,
I intend to perform a HPC test to compare between Heckman and PPML model. However, I am unsure about whether or not I am using the right set of codes. I have read the following paper on how to perform the test but still finds it a bit difficult to understand.
Santos Silva, J.M.C., Tenreyro, S., and Windmeijer, F. (2015), Testing Competing Models for Non-Negative Data with Many Zeros, Journal of Econometric Methods, 4(1), pp. 29-46.
Here are my codes:
Note: DV represents dependent variable and IV represent a set of explanatory variables.
It would be helpful if someone could identify the mistake in the above codes.
Looking forward to your guidance.
Best regards,
Shazmeen Maroof.
I intend to perform a HPC test to compare between Heckman and PPML model. However, I am unsure about whether or not I am using the right set of codes. I have read the following paper on how to perform the test but still finds it a bit difficult to understand.
Santos Silva, J.M.C., Tenreyro, S., and Windmeijer, F. (2015), Testing Competing Models for Non-Negative Data with Many Zeros, Journal of Econometric Methods, 4(1), pp. 29-46.
Here are my codes:
Code:
*PPML poisson DV IV predict f_one, n *Heckman heckman DV IV, select(dy = IV) twostep predict double fito, xb predict double xg, xbsel gen double fith=exp(fito+0.5*e(sigma)^2+log(normal(xg+ e(rho)*e(sigma)))) *HPC Test hpc DV IV, a(f_one) b(fith)
It would be helpful if someone could identify the mistake in the above codes.
Looking forward to your guidance.
Best regards,
Shazmeen Maroof.
Comment