This page provides an overview of the currently supported methods for longitudinal clustering. For general recommendations on which method to apply to your dataset, see here.

Supported methods

MethodDescriptionSource
lcMethodAkmedoidsAnchored k-medoids (Adepeju et al. 2020)akmedoids
lcMethodCrimCVGroup-based trajectory modeling of count data (Nielsen 2018)crimCV
lcMethodDtwclustMethods for distance-based clustering, including dynamic time warping (Sardá-Espinosa 2019)dtwclust
lcMethodFeatureFeature-based clustering
lcMethodFlexmixInterface to the FlexMix framework (Grün and Leisch 2008)flexmix
lcMethodFlexmixGBTMGroup-based trajectory modelingflexmix
lcMethodFunFEMModel-based clustering using funFEM (Bouveyron 2015)funFEM
lcMethodGCKMGrowth-curve modeling and k-meanslme4
lcMethodKMLLongitudinal k-means (Genolini et al. 2015)kml
lcMethodLcmmGBTMGroup-based trajectory modeling (Proust-Lima et al. 2017)lcmm
lcMethodLcmmGMMGrowth mixture modeling (Proust-Lima et al. 2017)lcmm
lcMethodLMKMFeature-based clustering using linear regression and k-means
lcMethodMclustLLPALongitudinal latent profile analysis (Scrucca et al. 2016)mclust
lcMethodMixAK_GLMMMixture of generalized linear mixed modelsmixAK
lcMethodMixtoolsGMMGrowth mixture modelingmixtools
lcMethodMixtoolsNPRMNon-parametric repeated measures clustering (Benaglia et al. 2009)mixtools
lcMethodMixTVEMMixture of time-varying effects models
lcMethodRandomRandom partitioning
lcMethodStratifyStratification rule

In addition, the functionality of any method can be extended via meta methods. This is used for extending the estimation procedure of a method, such as repeated fitting and selecting the best result, or fitting until convergence.

It is strongly encouraged to evaluate and compare several candidate methods in order to identify the most suitable method.

References

Adepeju M, Langton S, Bannister J (2020). akmedoids: Anchored Kmedoids for Longitudinal Data Clustering. R package version 0.1.5, https://CRAN.R-project.org/package=akmedoids.

Benaglia T, Chauveau D, Hunter DR, Young D (2009). “mixtools: An R Package for Analyzing Finite Mixture Models.” Journal of Statistical Software, 32(6), 1--29. doi:10.18637/jss.v032.i06 .

Bouveyron C (2015). funFEM: Clustering in the Discriminative Functional Subspace. R package version 1.1, https://CRAN.R-project.org/package=funFEM.

Genolini C, Alacoque X, Sentenac M, Arnaud C (2015). “kml and kml3d: R Packages to Cluster Longitudinal Data.” Journal of Statistical Software, 65(4), 1--34. doi:10.18637/jss.v065.i04 .

Grün B, Leisch F (2008). “FlexMix Version 2: Finite Mixtures with Concomitant Variables and Varying and Constant Parameters.” Journal of Statistical Software, 28(4), 1--35. doi:10.18637/jss.v028.i04 .

Nielsen JD (2018). crimCV: Group-Based Modelling of Longitudinal Data. R package version 0.9.6, https://CRAN.R-project.org/package=crimCV.

Proust-Lima C, Philipps V, Liquet B (2017). “Estimation of Extended Mixed Models Using Latent Classes and Latent Processes: The R Package lcmm.” Journal of Statistical Software, 78(2), 1--56. doi:10.18637/jss.v078.i02 .

Sardá-Espinosa A (2019). “Time-Series Clustering in R Using the dtwclust Package.” The R Journal. doi:10.32614/RJ-2019-023 .

Scrucca L, Fop M, Murphy TB, Raftery AE (2016). “mclust 5: clustering, classification and density estimation using Gaussian finite mixture models.” The R Journal, 8(1), 205--233.

Examples

data(latrendData)
method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time")
model <- latrend(method, data = latrendData)