Identifying medication use clusters with the R package tame based on dose, timing and ATC codes

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 ensure 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.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2025-11-12
DOI
https://doi.org/10.1038/s41598-025-23345-9
Primary Topic
Health, Environment, Cognitive Aging
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Identifying medication use clusters with the R package tame based on dose, timing and ATC codes

Jan Wohlfahrt, Anders Hviid, Anna Laksafoss
Scientific Reports
Health, Environment, Cognitive Aging
article

Identifying medication use clusters with the R package tame based on dose, timing and ATC codes

Jan Wohlfahrt, Anders Hviid, Anna Laksafoss
article en

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 ensure 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.

Scientific ReportsVol. 15(1)
Statens Serum Institut (DK), University of Copenhagen (DK), Danish Cancer Society (DK), Aalborg University (DK)
Openalex Percentile: Top 57%
Health, Environment, Cognitive Aging
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.