<b>StepMix</b>: A <i>Python</i> Package for Pseudo-Likelihood Estimation of Generalized Mixture Models with External Variables
StepMix is an open-source Python package for the pseudo-likelihood estimation (one-, two- and three-step approaches) of generalized finite mixture models (latent profile and latent class analysis) with external variables (covariates and distal outcomes). In many applications in social sciences, the main objective is not only to cluster individuals into latent classes, but also to use these classes to develop more complex statistical models. These models generally divide into a measurement model that relates the latent classes to observed indicators, and a structural model that relates covariates and outcome variables to the latent classes. The measurement and structural models can be estimated jointly using the so-called one-step approach or sequentially using stepwise methods, which present significant advantages for practitioners regarding the interpretability of the estimated latent classes. In addition to the one-step approach, StepMix implements the most important stepwise estimation methods from the literature, including the bias-adjusted three-step methods with Bolk-Croon-Hagenaars and maximum likelihood corrections and the more recent two-step approach. These pseudo-likelihood estimators are presented in this paper under a unified framework as specific expectation-maximization subroutines. To facilitate and promote their adoption among the data science community, StepMix follows the object-oriented design of the scikit-learn library and provides an additional R wrapper.
Authors
- Éric Lacourse (ORCID: https://orcid.org/0000-0002-4779-9900)
- Zsuzsa Bakk (ORCID: https://orcid.org/0000-0001-9352-4812)
- Charles‐Édouard Giguère (ORCID: https://orcid.org/0000-0002-8507-6412)
- Robin Legault (ORCID: https://orcid.org/0009-0005-6551-0591)
- Sacha Morin
- Roxane de la Sablonnière (ORCID: https://orcid.org/0000-0003-2534-7142)
- Félix Laliberté
Institutions
- Leiden University (NL)
- Institut universitaire en santé mentale de Montréal (CA)
- Massachusetts Institute of Technology (US)
- Université de Montréal (CA)
Publication Details
- Journal
- Journal of Statistical Software
- Published
- 2025-01-01
- DOI
- https://doi.org/10.18637/jss.v113.i08
- Citations
- 4
- Primary Topic
- Bayesian Methods and Mixture Models
- Type
- article
- Field-Weighted Citation Impact
- 9.92
Funders
- Institut de Valorisation des Données
- Canadian Institutes of Health Research
- Natural Sciences and Engineering Research Council of Canada
- Social Sciences and Humanities Research Council of Canada
- Fonds de recherche du Québec – Nature et technologies