The cluster-weighted model (CWM) is a member of the family of mixtures of regression models and is also known as a mixture of regressions with random covariates. CWMs refer to the framework of model-based clustering and naturally apply when the research interest requires modeling the relationship between a response variable and a set of covariates using a regression-based approach such as a generalized linear model with the sample being suspected of comprising heterogeneous latent classes. A command for fitting these models is not yet available in Stata, so the aim of this article is to introduce the package cwmglm, which fits CWMs based on the most common generalized linear models with random covariates. Moreover, cwmglm allows the estimation of parsimonious models of Gaussian distributions, with the parameterization of the variance–covariance matrix based on the eigenvalue decomposition. These features are completely new for Stata users. The cwmglm package features goodness-of-fit, bootstrapping, and model-selection tools. We illustrate the use of cwmglm with real and simulated datasets.

Cluster-weighted models using Stata

Ingrassia, Salvatore
Secondo
Methodology
;
2024-01-01

Abstract

The cluster-weighted model (CWM) is a member of the family of mixtures of regression models and is also known as a mixture of regressions with random covariates. CWMs refer to the framework of model-based clustering and naturally apply when the research interest requires modeling the relationship between a response variable and a set of covariates using a regression-based approach such as a generalized linear model with the sample being suspected of comprising heterogeneous latent classes. A command for fitting these models is not yet available in Stata, so the aim of this article is to introduce the package cwmglm, which fits CWMs based on the most common generalized linear models with random covariates. Moreover, cwmglm allows the estimation of parsimonious models of Gaussian distributions, with the parameterization of the variance–covariance matrix based on the eigenvalue decomposition. These features are completely new for Stata users. The cwmglm package features goodness-of-fit, bootstrapping, and model-selection tools. We illustrate the use of cwmglm with real and simulated datasets.
2024
st0762, cwmglm, cluster-weighted model, finite mixtures of regressions with random covariates, model-based clustering, saturated mixture regression model, Gaussian parsimonious models, postestimation.
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/20.500.11769/654209
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact