https://github.com/philips-labs/demo-clustering-longitudinal-data
Supplementary materials for the manuscript "Clustering of longitudinal data: A tutorial on a variety of approaches" by N. G. P. Den Teuling, S.C. Pauws, and E.R. van den Heuvel (2021)
https://github.com/philips-labs/demo-clustering-longitudinal-data
cluster-analysis longitudinal-analysis r tutorial
Last synced: 3 months ago
JSON representation
Supplementary materials for the manuscript "Clustering of longitudinal data: A tutorial on a variety of approaches" by N. G. P. Den Teuling, S.C. Pauws, and E.R. van den Heuvel (2021)
- Host: GitHub
- URL: https://github.com/philips-labs/demo-clustering-longitudinal-data
- Owner: philips-labs
- License: mit
- Created: 2021-11-09T22:55:34.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-11T09:50:55.000Z (almost 4 years ago)
- Last Synced: 2025-06-08T21:02:15.113Z (4 months ago)
- Topics: cluster-analysis, longitudinal-analysis, r, tutorial
- Language: R
- Homepage: https://arxiv.org/abs/2111.05469
- Size: 18.6 KB
- Stars: 11
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Citation: CITATION.cff
Awesome Lists containing this project
README
This repository contains the R scripts used in the analysis of the case study of the manuscript.
# Useful links
* MixTVEM source code used in the MixTVEM demo analysis - https://github.com/dziakj1/MixTVEM
* _lcmm_ R package, used for estimating GMM and GBTM - https://cran.r-project.org/package=lcmm
* _kml_ R package, used for estimating KmL - https://cran.r-project.org/package=kml
* _mclust_ R package, used for estimating LLPA - https://cran.r-project.org/package=mclust
* _latrend_ R package: The longitudinal clustering framework that we have created, originating from the learnings of this work - https://github.com/philips-software/latrend# Getting started
1. Either load the Rstudio project file `demo.Rproj`, or start an R session with the working directory set to the root repository directory.
2. Install required packages and dependencies
```
install.packages(c("assertthat", "data.table", "ggdendro", "ggplot2", "IMIFA", "kml", "lcmm", "lpSolve", "magrittr", "MASS", "matrixStats", "mclust", "nlme", "scales"), dependencies = TRUE)
```
3. In case you want to run the MixTVEM analysis, you'll need to fetch `MixTVEM.R` from https://github.com/dziakj1/MixTVEMYou should now be able to run any of the analysis scripts.