Package: AgeTopicModels Title: Inferring Age-Dependent Disease Topic from Diagnosis Data Version: 0.3.0 Authors@R: person("Xilin", "Jiang", , "jiangxilin1@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-6773-9182")) Description: 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) . License: MIT + file LICENSE 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) Config/testthat/edition: 3 Encoding: UTF-8 LazyData: true LazyDataCompression: xz RoxygenNote: 7.3.3 NeedsCompilation: no Packaged: 2026-10-31 10:08:50 UTC; root Author: Xilin Jiang [aut, cre] (ORCID: ) Maintainer: Xilin Jiang Config/pak/sysreqs: libicu-dev Repository: https://xilin-jiang.r-universe.dev Date/Publication: 2026-02-28 12:20:02 UTC RemoteUrl: https://github.com/cran/AgeTopicModels RemoteRef: HEAD RemoteSha: 78cbce78d9a57fb36cdf72840d6c6decba707354