Adherence to Medications
Overview
Computation of adherence to medications from Electronic Health care Data and visualization of individual medication histories and adherence patterns. The package implements a set of S3 classes and functions consistent with current adherence guidelines and definitions. It allows the computation of different measures of adherence (as defined in the literature, but also several original ones), their publication-quality plotting, the estimation of event duration and time to initiation, the interactive exploration of patient medication history and the real-time estimation of adherence given various parameter settings. It scales from very small datasets stored in flat CSV files to very large databases and from single-thread processing on mid-range consumer laptops to parallel processing on large heterogeneous computing clusters. It exposes a standardized interface allowing it to be used from other programming languages and platforms, such as Python.
Bugfix
- fixed GitHub issue #206 (reported by Sebastian Kinnberg Nielsen) where the
dosage.change.means.new.treatment.episodeparameter ofcompute.treatment.episodes()did not have any effect.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 43
- Examples that run
- 65%17 run in a plain check · 9 never run
- Exported functions with examples
- 67%
- Documented parameters
- 85%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 80%
- Median days to close, 50 most recently updated closed issues
- 6
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
1 development-tooling and community-health practice detected across 1 family in the upstream repository
Checks run against github.com/ddediu/adherer on 2026-10-18.
GitHub Pages site last deployed 2019-06-14
Dependencies
Installing AdhereR adds 9 packages (7 with compiled code, 6.9 MB of source tarballs). Heaviest: data.table 5.7 MB, lubridate 420 KB, cpp11 298 KB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.8.3Latest
- RR 4.6.0 released · 2026-04-24
- 0.8.22026-01-15 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.8.12022-07-05 · diff ↗
- 0.8.02022-06-23 · diff ↗ ·
added 3 exports
getEventsToEpisodesMapping, getEventsToSlidingWindowsMapping, getInnerEventInfo - RR 4.2.0 released · 2022-04-22
- 0.7.0
- RR 4.1.0 released · 2021-05-18
- 0.6.12020-05-12 · diff ↗
- 0.6.02020-05-07 · diff ↗ ·
added 7 exports
CMA_polypharmacy, get.event.plotting.area, get.legend.plotting.area, get.plotted.events, get.plotted.partial.cmas, last.plot.get.info, map.event.coords.to.plot - RR 4.0.0 released · 2020-04-24
- 0.5
- RR 3.6.0 released · 2019-04-26
Show 8 earlier eventsHide 8 earlier events
Package metadata
- First published
- 2017-04-27
- Total releases
- 14 / 9 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.0
- Bundled data
- 27 KB / 3 files
- Download size
- 2.8 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("AdhereR")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.