We are pleased to have released new statistical coding and a Stata package to standardise the measurement and reporting of the proportion of days covered (PDC) against the TEN-SPIDERS framework.
The new open-source coding in Stata can be accessed via https://github.com/TEN-SPIDERS
A simple package has also been developed to operationalise the code into a simple executable function within Stata (StataCorp) statistical software.
Further information on how to prepare the dataset for the tenspiders Stata code and package is provided in our pre-print manuscript:
Adam C. Livori, Tzu-Yung Kuo, Jenni Ilomaki, et al. Development of a Statistical Package to Standardise the Measurement and Reporting of Medication Adherence Using Claims Data: The TEN-SPIDERS Tool. Authorea. January 15, 2026. doi.org/10.22541/au.176844848.83884959/v1
Type:
ssc install tenspiders
*Standard PDC calculation with adjustment for early refills and censoring at death (80% threshold to define high adherence):
use "medication.dta", clear
tenspiders, id(person_id) supply_date(spply_dt) days_supply(qty_sppld) event_date(spply_dt) numerator_start_date(1) death_date(death_date) early_refills(1)
*Adanced PDC calculation with adjustment for early refills, switching and censoring at death (90% threshold to define high adherence):
use "medication.dta", clear
tenspiders, id(person_id) supply_date(spply_dt) days_supply(qty_sppld) event_date(spply_dt) numerator_start_date(1) death_date(death_date) early_refills(1) switching(1) threshold(0.9)