Longitudinal clustering in kinesiology 2: the longclust package in R
DOI:
https://doi.org/10.63750/rr27aa25Keywords:
longitudinal clustering, multivariate repeated measures, cluster analysis, longitudinal model-based clustering, RAbstract
High variation is common in longitudinal kinesiology studies, as participants may respond differently to interventions. In the previous article, implementation of longitudinal k-means in R is used in tandem with repeated measures (multivariate) analysis of variance to understand overall change, and to discover hidden trajectories. The purpose of this article is to demonstrate how to analyze data using model-based clustering. The same synthetic dataset is analyzed, using the longclust package in R. Comparison with the kml and kml3d packages is discussed.
Downloads
References
Biernacki, C., Celeux, G., & Govaert, G. (2000). Assessing a mixture model for clustering with the integrated completed likelihood. IEEE Transactions on Pattern Analysis and Machine Intelligence, 22(7), 719–725. https://doi.org/10.1109/34.865189
Genolini, C., Alacoque, X., Sentenac, M., & Arnaud, C. (2015). kml and kml3d: R packages to cluster longitudinal data. Journal of Statistical Software, 65(4), 1–34. https://doi.org/10.18637/jss.v065.i04
Hubal, M. J., Gordish-Dressman, H., Thompson, P. D., Price, T. B., Hoffman, E. P., Angelopoulos, T. J., Gordon, P. M., Moyna, N. M., Pescatello, L. S., Visich, P. S., Zoeller, R. F., Seip, R. L., & Clarkson, P. M. (2005). Variability in muscle size and strength gain after unilateral resistance training. Medicine and Science in Sports and Exercise, 37(6), 964–972. https://doi.org/10.1249/01.mss.0000170469.90461.5f
McNicholas, P. D., Jampani, K. R., & Subedi, S. (2023). longclust: Model-based clustering and classification for longitudinal data (Version 1.5) [Computer software]. CRAN. https://CRAN.R-project.org/package=longclust
McNicholas, P. D., & Murphy, T. B. (2010). Model-based clustering of longitudinal data. Canadian Journal of Statistics, 38(1), 153–168. https://doi.org/10.1002/cjs.10047
McNicholas, P. D., & Subedi, S. (2012). Clustering gene expression time course data using mixtures of multivariate t-distributions. Journal of Statistical Planning and Inference, 142(5), 1114–1127. https://doi.org/10.1016/j.jspi.2011.11.026
Ojeda-Aravena, A., Herrera-Valenzuela, T., Valdés-Badilla, P., Cancino-López, J., Zapata-Bastias, J., & García-García, J. M. (2021). Inter-individual variability of a high-intensity interval training with specific techniques vs. repeated sprints program in sport-related fitness of Taekwondo athletes. Frontiers in Physiology, 12, Article 766153. https://doi.org/10.3389/fphys.2021.766153
OpenAI. (2025). ChatGPT [Large language model]. https://chat.openai.com/
Pourahmadi, M. (1999). Joint mean-covariance models with applications to longitudinal data: Unconstrained parameterisation. Biometrika, 86(3), 677–690. https://doi.org/10.1093/biomet/86.3.677
R Core Team. (2025). R: A language and environment for statistical computing [Computer software]. R Foundation for Statistical Computing. https://www.r-project.org/
Schauberger, P., Walker, A., Braglia, L., Sturm, J., Garbuszus, J. M., Barbone, J. M., Zimmermann, D., & Kainhofer, R. (2025). openxlsx: Read, write and edit xlsx files (Version 4.2.8) [Computer software]. CRAN. https://CRAN.R-project.org/package=openxlsx
Schwarz, G. (1978). Estimating the dimension of a model. The Annals of Statistics, 6(2), 461–464. https://doi.org/10.1214/aos/1176344136
Wickham, H., Miller, E., & Smith, D. (2025). haven: Import and export 'SPSS', 'Stata' and 'SAS' files (Version 2.5.5.9000) [Computer software]. GitHub. https://github.com/tidyverse/haven
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Keston Lindsay (Author)

This work is licensed under a Creative Commons Attribution 4.0 International License.
Copyright & Licensing Policy:
- Open Access Policy: This journal follows a fully Open Access model, which means all published research articles are freely available to readers without any subscription or access fees. Anyone can read, download, copy, distribute, print, and cite the published work without restrictions, as long as they comply with the journal’s licensing terms.
- Copyright & License:
- All articles published in this journal are licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0).
- This license allows unrestricted reuse and distribution, provided that proper credit is given to the original author and source.
- Authors retain full copyright ownership of their work while granting the journal the right to publish it for the first time under this license.
- Author Responsibilities:
- Authors must agree to the journal’s licensing terms before publication.
- Submitted manuscripts must be original and not published or under consideration elsewhere during the review process.
- Any reuse of published content by third parties must comply with the CC BY 4.0 license, ensuring no additional restrictions are imposed on reuse.
- Publication Fees (free to publish):
- This journal does not charge authors any fees for submission, processing, peer review or publication, and does not charge readers for access to published research, supporting the principle of free and open scientific knowledge for all.