English

latrend: A Framework for Clustering Longitudinal Data

Machine Learning 2024-02-23 v1 Machine Learning

Abstract

Clustering of longitudinal data is used to explore common trends among subjects over time for a numeric measurement of interest. Various R packages have been introduced throughout the years for identifying clusters of longitudinal patterns, summarizing the variability in trajectories between subject in terms of one or more trends. We introduce the R package "latrend" as a framework for the unified application of methods for longitudinal clustering, enabling comparisons between methods with minimal coding. The package also serves as an interface to commonly used packages for clustering longitudinal data, including "dtwclust", "flexmix", "kml", "lcmm", "mclust", "mixAK", and "mixtools". This enables researchers to easily compare different approaches, implementations, and method specifications. Furthermore, researchers can build upon the standard tools provided by the framework to quickly implement new cluster methods, enabling rapid prototyping. We demonstrate the functionality and application of the latrend package on a synthetic dataset based on the therapy adherence patterns of patients with sleep apnea.

Keywords

Cite

@article{arxiv.2402.14621,
  title  = {latrend: A Framework for Clustering Longitudinal Data},
  author = {Niek Den Teuling and Steffen Pauws and Edwin van den Heuvel},
  journal= {arXiv preprint arXiv:2402.14621},
  year   = {2024}
}

Comments

25 pages, 4 figures

R2 v1 2026-06-28T14:57:14.259Z