Tame: An R package for identifying clusters of medication use based on dose, timing and type of medication
Laksafoss, A.; Wohlfahrt, J.; Hviid, A.
Show abstract
Simplified exposure classifications, such as ever exposed versus never exposed, are commonly used in pharmacoepidemiology. However, this simplification may obscure complex use patterns relevant to researchers. We introduce tame, an R package that offers a novel method for classifying medication use patterns, capturing complexities such as timing, dose, and concurrent medication use in real-world data. The core innovation of tame is its bespoke distance measure, which identifies complex clusters in medication use and is highly adaptable, allowing customization based on the Anatomical Therapeutic Chemical (ATC) Classification System, medication timing, and dose. By prioritizing a robust distance measure, tame ensures accurate and meaningful clustering, enabling researchers to uncover intricate patterns within their data. The package also includes tools for visualizing and applying these clusters to new datasets. In a national Danish cohort study, tame identified nuanced antidepressant use patterns before and during pregnancy, demonstrating its capability to detect complex trends. tame is available on the Comprehensive R Archive Network at [https://CRAN.R-project.org/package=tame] under an MIT license, with a development version on GitHub at [https://github.com/Laksafoss/tame]. tame enhances medication use classification by detecting complex interactions and offering insights into real-world medication usage, thus improving stratification in epidemiological studies.
Matching journals
The top 11 journals account for 50% of the predicted probability mass.
Similar papers in this journal
- Bias amplification of unobserved confounding in pharmacoepidemiological studies using indication-based sampling: there is no free lunch in restricting the sample to those with a particular drug-indication 91%
- INSIGHT: A Tool for Fit-for-Purpose Evaluation and Quality Assessment of Observational Data Sources for Real World Evidence on Medicine and Vaccine Safety 91%
- Using quantitative bias analysis to adjust for misclassification of COVID-19 outcomes: An applied example of inhaled corticosteroids and COVID-19 outcomes 90%
Similar papers in this journal
Similar papers in this journal
- Cohort Profile: Investigating Antidepressant Response within Generation Scotland 92%
- Baseline nowcasting methods for handling delays in epidemiological data 89%
- The consequences of adjustment, correction and selection in genome-wide association studies used for two-sample Mendelian randomization 89%
Similar papers in this journal
- Comparative assessment of methods for short-term forecasts of COVID-19 admissions in England at the local level 89%
- Compassionate drug (mis)use during pandemics: lessons for COVID-19 from 2009. 88%
- Assessing the impact of maternal blood pressure during pregnancy on perinatal health: A wide-angled Mendelian randomization study 88%
Similar papers in this journal
- Data-driven methodology for discovery and response to pulmonary symptomology in hypertension through AI and machine learning: Application to COVID-19 related pharmacovigilance 91%
- Systematic analysis of electronic health records identifies drugs reducing risk of COVID-19 hospitalization and severity 90%
- Using normative models pre-trained on cross-sectional data to evaluate intra-individual longitudinal changes in neuroimaging data 90%
"Similar papers" are the closest papers from that journal in the model's embedding space. They show what the match is built on, but the ranking comes mostly from a classifier over the whole training set, not from these examples alone.