clustGLMM: Model-Based Clustering of Mixed-Type Longitudinal Data
- 22 July 2026
- dataset
- Published by The R Foundation
Abstract
Provides tools for Bayesian estimation and inference for modelling clusterwise multivariate regression models for numeric, count, binary, ordinal and count outcomes observed repeatedly on the same units and where possible relations among outcomes are captured through a joint distribution of random effects. The clusters are defined through cluster-specific parameters, which the analyst can choose, e.g., with respect to the regression coefficients. In particular, the model specification for each regression model via the formula is specific to the outcome and consists of four parts: (1) fixed - regression coefficients common to all clusters, (2) group - group-specific regression coefficients, (3) random - random effects specific for each unit, (3) offset - name of an offset variable (if needed). Estimation is performed using MCMC sampling combining Gibbs and Metropolis-Hastings steps. Post-processing tools allow to assess convergence and address label switching and provide visual diagnostics. Units may be classified based on sampled allocation indicators or by exploiting the posterior distribution of the classification probabilities. For more details see Vavra et al. (2024) .Keywords
This publication has 10 references indexed in Scilit:
- CliPS -- How to identify cluster distributions in Bayesian mixture modelsarXiv, 2026
- Clusterwise multivariate regression of mixed-type panel dataStatistics and Computing, 2023
- brms: An R Package for Bayesian Multilevel Models Using Stan2017
- Estimation of Extended Mixed Models Using Latent Classes and Latent Processes: The R Package lcmm2017
- Model-based clustering based on sparse finite Gaussian mixturesStatistics and Computing, 2014
- Capabilities ofRPackagemixAKfor Clustering Based on Multivariate Continuous and Discrete Longitudinal DataJournal of Statistical Software, 2014
- Dealing with Label Switching under Model Uncertainty2011
- MCMC Methods for Multi-Response Generalized Linear Mixed Models: TheMCMCglmmRPackage2010
- Efficient Laplacian and Adaptive Gaussian Quadrature Algorithms for Multilevel Generalized Linear Mixed ModelsJournal of Computational and Graphical Statistics, 2006
- FlexMix: A General Framework for Finite Mixture Models and Latent Class Regression inRJournal of Statistical Software, 2004