The cluster-weighted model (CWM) is a member of the family of mixture of regression models and is also known as mixtures of regressions with random covariates. CWMs refer to the framework of model-based clustering and have their natural application 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 and the sample is suspected to be composed by heterogeneous latent classes. Software for estimating these models is not yet available in Stata. The aim of this article is to introduce the Stata package \code{cwmglm}, which allows fitting CWMs based on the most common generalized linear models with random covariates. Moreover, \code{cwmglm} allows the estimation of parsimonious models of Gaussian distributions, with the parametrization of the variance-covariance matrix based on the eigenvalue decomposition. These features are completely new for Stata users. The \code{cwmglm} package features goodness-of-fit, bootstrapping and model selection tools. We illustrate the use of \code{cwmglm} with real and simulated datasets

Spinelli, D., Ingrassia, S., Vittadini, G. (2024). Cluster-weighted models using Stata. THE STATA JOURNAL, 1-33.

Cluster-weighted models using Stata

Spinelli D
Primo
;
Vittadini G
2024

Abstract

The cluster-weighted model (CWM) is a member of the family of mixture of regression models and is also known as mixtures of regressions with random covariates. CWMs refer to the framework of model-based clustering and have their natural application 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 and the sample is suspected to be composed by heterogeneous latent classes. Software for estimating these models is not yet available in Stata. The aim of this article is to introduce the Stata package \code{cwmglm}, which allows fitting CWMs based on the most common generalized linear models with random covariates. Moreover, \code{cwmglm} allows the estimation of parsimonious models of Gaussian distributions, with the parametrization of the variance-covariance matrix based on the eigenvalue decomposition. These features are completely new for Stata users. The \code{cwmglm} package features goodness-of-fit, bootstrapping and model selection tools. We illustrate the use of \code{cwmglm} with real and simulated datasets
Articolo in rivista - Articolo scientifico
cwmglm, finite mixtures of regressions with random covariates, model-based clustering, Gaussian parsimonious models
English
2024
1
33
open
Spinelli, D., Ingrassia, S., Vittadini, G. (2024). Cluster-weighted models using Stata. THE STATA JOURNAL, 1-33.
File in questo prodotto:
File Dimensione Formato  
Spinelli-2022-Stata J-AAM.pdf

accesso aperto

Descrizione: Any re-use terms for users of repositories are restricted to non-commercial and no derivative uses.
Tipologia di allegato: Author’s Accepted Manuscript, AAM (Post-print)
Licenza: Altro
Dimensione 1.02 MB
Formato Adobe PDF
1.02 MB Adobe PDF Visualizza/Apri

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/10281/480679
Citazioni
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
Social impact