Package: AgeTopicModels 0.3.0
AgeTopicModels: Inferring Age-Dependent Disease Topic from Diagnosis Data
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>.
Authors:
AgeTopicModels_0.3.0.tar.gz
AgeTopicModels_0.3.0.zip(r-4.7-any)AgeTopicModels_0.3.0.zip(r-4.6-any)AgeTopicModels_0.3.0.zip(r-4.5-any)
AgeTopicModels_0.3.0.tgz(r-4.6-any)AgeTopicModels_0.3.0.tgz(r-4.5-any)
AgeTopicModels_0.3.0.tar.gz(r-4.7-any)AgeTopicModels_0.3.0.tar.gz(r-4.6-any)
AgeTopicModels_0.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
AgeTopicModels/json (API)
| # Install 'AgeTopicModels' in R: |
| install.packages('AgeTopicModels', repos = c('https://xilin-jiang.r-universe.dev', 'https://cloud.r-project.org')) |
- disease_info_phecode_icd10 - Disease information linking PheCodes and ICD-10
- HES_age_example - Example HES diagnosis ages
- HES_icd10_example - Example HES ICD-10 diagnoses
- phecode_icd10 - ICD-10 <-> PheCode mapping
- phecode_icd10cm - ICD-10-CM <-> PheCode mapping
- short_icd10 - Short labels (at most first for letters/digits) for ICD-10 codes
- short_icd10cm - Short labels (at most first for letters/digits) for ICD-10-CM codes
- SNOMED_ICD10CM - SNOMED <-> ICD-10
- UKB_349_disease - List of 349 UK Biobank diseases
- UKB_HES_10topics - Example topic model output
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated from:78cbce78d9. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 196 | ||
| source / vignettes | OK | 193 | ||
| linux-release | OK | 252 | ||
| macos-release | OK | 268 | ||
| macos-oldrel | OK | 289 | ||
| windows-devel | OK | 278 | ||
| windows-release | OK | 267 | ||
| windows-oldrel | OK | 171 | ||
| wasm-release | OK | 95 |
Exports:%>%age_imputationdiseasematrix2longdataicd2phecodeloading2weightslongdata2diseasematrixplot_age_topicsplot_lfa_topicsprediction_ORsimulate_genetic_disease_from_topicsimulate_topicswrapper_ATMwrapper_LFA
Dependencies:clicpp11data.tabledplyrfarvergenericsggplot2ggrepelgluegtablegtoolsisobandlabelinglifecyclemagrittrpillarpkgconfigplyrpROCpurrrR6RColorBrewerRcppreshape2rlangS7scalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr
