We outline a fairly simple method to obtain in Stata Murphy-Topel-corrected variances for a two-step estimation of a heckprobit model with endogeneity in the main equation. The procedure uses predict's score option and the powerful matrix tool accum in Stata and builds on previous works by Hardin (2002, Stata Journal 2: 253–266) and Hole (2006, Stata Journal 6: 521–529).
HardinJ. W.2002. The robust variance estimator for two-stage models. Stata Journal2: 253–266.
4.
HoleA. R.2006. Calculating Murphy-Topel variance estimates in Stata: A simplified procedure. Stata Journal6: 521–529.
5.
LahiriK., and SchmidtP.1978. On the estimation of triangular structural systems. Econometrica46: 1217–1221.
6.
MuroJ., SuárezC., and ZamoraM. M.2006. The demand for low-cost carriers: An empirical micro analysis. Unpublished manuscript.
7.
MuroJ.C.2009. Access and use of e-commerce in the Spanish tourism market. In Advances in Tourism Destination Marketing, ed. KozakM., GnothJ., and AndreuL. L. A., 170–182. London: Routledge.
8.
MurphyK. M., and TopelR. H.2002. Estimation and inference in two-step econometric models. Journal of Business and Economic Statistics20: 88–97.