TY - JOUR AU - Voronca, Delia C. AU - Gebregziabher, Mulugeta AU - Durkalski-Mauldin, Valerie AU - Liu, Lei AU - Egede, Leonard E. PY - 2018/11/12 Y2 - 2024/03/29 TI - MTPmle: A SAS Macro and Stata Programs for Marginalized Inference in Semi-Continuous Data JF - Journal of Statistical Software JA - J. Stat. Soft. VL - 87 IS - 6 SE - Articles DO - 10.18637/jss.v087.i06 UR - https://www.jstatsoft.org/index.php/jss/article/view/v087i06 SP - 1 - 24 AB - We develop a SAS macro and equivalent Stata programs that provide marginalized inference for semi-continuous data using a maximum likelihood approach. These software extensions are based on recently developed methods for marginalized two-part (MTP) models. Both the SAS and Stata extensions can fit simple MTP models for cross-sectional semi-continuous data. In addition, the SAS macro can fit random intercept models for longitudinal or clustered data, whereas the Stata programs can fit MTP models that account for subject level heteroscedasticity and for a complex survey design. Differences and similarities between the two software extensions are highlighted to provide a comparative picture of the available options for estimation, inclusion of random effects, convergence diagnosis, and graphical display. We provide detailed programming syntax, simulated and real data examples to facilitate the implementation of the MTP models for both SAS and Stata software users. ER -