MTPmle: A SAS macro and Stata programs for marginalized inference in semi-continuous data

Delia C. Voronca, Mulugeta Gebregziabher, Valerie Durkalski-Mauldin, Lei Liu, Leonard E. Egede

Research output: Contribution to journalArticlepeer-review

2 Scopus citations


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.

Original languageEnglish
JournalJournal of Statistical Software
Issue number6
StatePublished - Oct 1 2018


  • Complex survey design
  • Generalized gamma
  • Log skew normal
  • Marginalized two-part models
  • Semi-continuous


Dive into the research topics of 'MTPmle: A SAS macro and Stata programs for marginalized inference in semi-continuous data'. Together they form a unique fingerprint.

Cite this