clustGLMM: Model-Based Clustering of Mixed-Type Longitudinal Data

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) <doi:10.1007/s11222-023-10304-5>.

Version: 1.0
Depends: R (≥ 4.0.0)
Imports: coda, colorspace, gaussquad, graphics, grDevices, HDInterval, MASS, methods, mvtnorm, nnet, RcppHungarian, splines, stats, utils
Suggests: knitr, rmarkdown, bookdown, kableExtra, dplyr, DiagrammeR, DiagrammeRsvg, rsvg, mclust, testthat (≥ 3.0.0)
Published: 2026-07-22
DOI: 10.32614/CRAN.package.clustGLMM (may not be active yet)
Author: Jan Vavra ORCID iD [aut, cre], Bettina Gruen ORCID iD [aut], Gertraud Malsiner-Walli ORCID iD [aut], Arnost Komarek ORCID iD [aut]
Maintainer: Jan Vavra <vavraj at karlin.mff.cuni.cz>
License: GPL-2
NeedsCompilation: yes
Citation: clustGLMM citation info
Materials: README
CRAN checks: clustGLMM results [issues need fixing before 2026-08-05]

Documentation:

Reference manual: clustGLMM.html , clustGLMM.pdf
Vignettes: The R Package clustGLMM - Clustering Longitudinal Data of Mixed Type (source, R code)

Downloads:

Package source: clustGLMM_1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): clustGLMM_1.0.tgz, r-oldrel (arm64): clustGLMM_1.0.tgz, r-release (x86_64): clustGLMM_1.0.tgz, r-oldrel (x86_64): clustGLMM_1.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=clustGLMM to link to this page.