clustra: Clustering Longitudinal Trajectories

Clusters longitudinal trajectories over time (can be unequally spaced, unequal length time series and/or partially overlapping series) on a common time axis. Performs k-means clustering on a single continuous variable measured over time, where each mean is defined by a thin plate spline fit to all points in a cluster. Distance is MSE across trajectory points to cluster spline. Provides graphs of derived cluster splines, silhouette plots, and Adjusted Rand Index evaluations of the number of clusters. Scales well to large data with multicore parallelism available to speed computation.

Version: 0.2.1
Depends: R (≥ 3.5.0)
Imports: data.table, graphics, grDevices, methods, mgcv, MixSim, parallel, stats
Suggests: haven, knitr, rmarkdown
Published: 2024-01-10
DOI: 10.32614/CRAN.package.clustra
Author: George Ostrouchov [aut, cre], David Gagnon [aut], Hanna Gerlovin [aut], Chen Wei-Chen [ctb], Schmidt Drew [ctb], Oak Ridge National Laboratory [cph], U.S. Department of Veteran's Affairs [fnd] (Project: Million Veteran Program Data Core)
Maintainer: George Ostrouchov <go at>
License: BSD 2-clause License + file LICENSE
NeedsCompilation: no
Materials: README NEWS
CRAN checks: clustra results


Reference manual: clustra.pdf
Vignettes: clustra: Graphics with BP Data
clustra: clustering trajectories


Package source: clustra_0.2.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): clustra_0.2.1.tgz, r-oldrel (arm64): clustra_0.2.1.tgz, r-release (x86_64): clustra_0.2.1.tgz, r-oldrel (x86_64): clustra_0.2.1.tgz
Old sources: clustra archive


Please use the canonical form to link to this page.