We propose an age-dependent topic modelling (ATM) model, providing a low-rank representation of longitudinal records of hundreds of distinct diseases in large electronic health record data sets. The model assigns to each individual topic weights for several disease topics; each disease topic reflects a set of diseases that tend to co-occur as a function of age, quantified by age-dependent topic loadings for each disease. The model assumes that for each disease diagnosis, a topic is sampled based on the individual’s topic weights (which sum to 1 across topics, for a given individual), and a disease is sampled based on the individual’s age and the age-dependent topic loadings (which sum to 1 across diseases, for a given topic at a given age). The model generalises the Latent Dirichlet Allocation (LDA) model by allowing topic loadings for each topic to vary with age. References: Jiang (2023) <doi:10.1038/s41588-023-01522-8>.
| Version: | 0.3.0 |
| Depends: | R (≥ 3.5) |
| Imports: | data.table, dplyr, ggplot2, ggrepel, grDevices, gtools, magrittr, pROC, reshape2, rlang, stats, stringr, tibble, tidyr, utils |
| Suggests: | testthat (≥ 3.0.0) |
| Published: | 2026-02-28 |
| DOI: | 10.32614/CRAN.package.AgeTopicModels |
| Author: | Xilin Jiang |
| Maintainer: | Xilin Jiang <jiangxilin1 at gmail.com> |
| License: | MIT + file LICENSE |
| NeedsCompilation: | no |
| Materials: | README, NEWS |
| CRAN checks: | AgeTopicModels results |
| Reference manual: | AgeTopicModels.html , AgeTopicModels.pdf |
| Package source: | AgeTopicModels_0.3.0.tar.gz |
| Windows binaries: | r-devel: AgeTopicModels_0.3.0.zip, r-release: AgeTopicModels_0.3.0.zip, r-oldrel: AgeTopicModels_0.3.0.zip |
| macOS binaries: | r-release (arm64): AgeTopicModels_0.3.0.tgz, r-oldrel (arm64): AgeTopicModels_0.3.0.tgz, r-release (x86_64): AgeTopicModels_0.3.0.tgz, r-oldrel (x86_64): AgeTopicModels_0.3.0.tgz |
| Old sources: | AgeTopicModels archive |
Please use the canonical form https://CRAN.R-project.org/package=AgeTopicModels to link to this page.
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.