Clustering Longitudinal Trajectories
allpair_RandIndex: helper for replicated cluster comparison
Checks if non-empty groups have enough data for spline fit degrees of ...
clustra-package
Cluster longitudinal trajectories over time
clustra_rand: Rand Index cluster evaluation
clustra_sil: Prepare silhouette plot data for several k or for a previ...
Timing function
Data Generators
gendata
Function to test information criteria. Not exported and used by intern...
A test function to evaluate information criteria for several k values....
Various Loss functions used internally by clustra
Generates data for one id
Plots a sample of ids in a small mutiples layout
Plots a list item, a silhouette, from the result of clustra_sil
alon...
plot_smooths
Function to predict for new data based on fitted gam object.
Matrix plot of Rand Index comparison of replicated clusters
Function to assign starting groups.
Fits a thin plate spline to a single group with bam
.
Function to run trajectories inside mclapply with one core.
Cluster longitudinal trajectories over time.
xit_report
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.