Skip to content

clustra

Clustering Longitudinal Trajectories

v0.2.1 · Jan 10, 2024 · BSD 2-clause License + file LICENSE

Description

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.

Downloads

284

Last 30 days

14640th

896

Last 90 days

3.6K

Last year

Trend: -11.5% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 30, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-devel-macos-arm64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building ‘clustra_bp_vignette.Rmd’ using rmarkdown

 *** caught segfault ***
address 0x110, cause 'invalid permissions'

 *** caught segfault ***
address 0x110, cause 'invalid permissions'

Traceback:
 1: Pre
...[truncated]...
th diagnostics:
dim(X) must have a positive length
--- failed re-building ‘clustra_vignette.Rmd’

SUMMARY: processing the following files failed:
  ‘clustra_bp_vignette.Rmd’ ‘clustra_vignette.Rmd’

Error: Vignette re-building failed.
Execution halted

Dependency Network

Dependencies Reverse dependencies data.table mgcv MixSim clustra

Version History

new 0.2.1 Mar 10, 2026
updated 0.2.1 ← 0.2.0 diff Jan 9, 2024
updated 0.2.0 ← 0.1.6 diff Oct 13, 2023
updated 0.1.6 ← 0.1.5 diff Jan 15, 2022
new 0.1.5 Nov 21, 2021