AdhereR icon indicating copy to clipboard operation
AdhereR copied to clipboard

Add function(s) to calculate durations of supply using either the forwards or reverse waiting time distribution

Open Masswear opened this issue 4 years ago • 2 comments

One of the greatest limitations in EHD adherence research is the lack of doses, or durations of supply in many data sets. Having the ability to calculate durations of supply using either the forwards or reverse waiting time distribution would be a useful feature in AdhereR. There is a function in the Stata package, wtdttt, and here are some references:

  1. Bødkergaard K, Selmer RM, Hallas J, et al. Using the waiting time distribution with random index dates to estimate prescription durations in the presence of seasonal stockpiling. Pharmacoepidemiol Drug Saf. 2020;29(9):1072-1078. doi:10.1002/pds.5026.
  2. Hallas J, Gaist D, Bjerrum L. The waiting time distribution as a graphical approach to epidemiologic measures of drug utilization. Epidemiology. 1997;8(6):666-670. doi:10.1097/00001648-199710000-00009.
  3. Pottegård A, Hallas J. Assigning exposure duration to single prescriptions by use of the waiting time distribution. Pharmacoepidemiol Drug Saf. 2013;22(8):803-809. doi:10.1002/pds.3459.

Masswear avatar Dec 29 '20 21:12 Masswear

I've translated a couple of the functions from wtdttt into R, perhaps they could be used as a starting point for this feature.

Please see https://github.com/mbg-unsw/Rwtd

mbg-unsw avatar Jun 04 '23 23:06 mbg-unsw

Hi Malcom, thanks for the pointer, I'll look into it (hopefully soon, depending on my workload), but I might have questions :) Best, Dan

ddediu avatar Jun 13 '23 07:06 ddediu