# Clustering Longitudinal Trajectories

## Documentation for package ‘clustra’ version 0.2.1

- DESCRIPTION file
- User guides, package vignettes and other documentation
- Package NEWS
- Package README

## Help Pages

clustra-package | clustra-package
allpair_RandIndex | allpair_RandIndex: helper for replicated cluster comparison
bp10k | Simulated blood pressure data
check_df | Checks if non-empty groups have enough data for spline fit degrees of freedom.
clustra | Cluster longitudinal trajectories over time
clustra_rand | clustra_rand: Rand Index cluster evaluation
clustra_sil | clustra_sil: Prepare silhouette plot data for several k or for a previous clustra run
deltime | Timing function
deltimeT | Timing function
gendata | gendata
gen_traj_data | Data Generators
ic_fun | Function to test information criteria. Not exported and used by internal function 'kchoose'.
kchoose | A test function to evaluate information criteria for several k values. Not exported and only for debugging internal use.
mae_g | Various Loss functions used internally by clustra
mme_g | Various Loss functions used internally by clustra
mse_g | Various Loss functions used internally by clustra
mxe_g | Various Loss functions used internally by clustra
oneid | Generates data for one 'id'
plot_sample | Plots a sample of ids in a small mutiples layout
plot_silhouette | Plots a list item, a silhouette, from the result of 'clustra_sil' along with the average silhouette value. Typically used via 'lapply(list, plot_silhouette)'
plot_smooths | plot_smooths
pred_g | Function to predict for new data based on fitted gam object.
rand_plot | Matrix plot of Rand Index comparison of replicated clusters
start_groups | Function to assign starting groups.
tps_g | Fits a thin plate spline to a single group with 'bam'.
trajectories | Cluster longitudinal trajectories over time.
traj_rep | Function to run trajectories inside mclapply with one core.
xit_report | xit_report