README.md

A package for clustering longitudinal trajectories

Clusters medical trajectories (unequally spaced and unequal length time series) aligned by an intervention at time 0. Clustering proceeds by an EM algorithm that iterates switching between fitting a bspline to combined responses within each cluster (M-step) and reassigning cluster membership based on nearest fitted bspline (E-step). Initial cluster assignments are random. The fitting is done with the mgcv package function bam, which scales well to very large data sets. Additional parallelism available via multicore on unix and mac platforms.

See the vignette for detailed use examples.



Try the clustra package in your browser

Any scripts or data that you put into this service are public.

clustra documentation built on Jan. 16, 2022, 9:06 a.m.