medPDC {medAdherence} | R Documentation |
medPDC
function calculates the proportion of days covered.
Proportion of Days Covered (PDC) was calculated by the nubmer of days with supply in study (no matter how many medications were taken on the day) divided by total number of days in study. The maximum of PDC is 100%.
medPDC(df=data,followUpDays=365)
df |
a dataframe created by postData funtion |
followUpDays |
days of follow up. 365 is the default, 12 month follow up |
Xiangyang Ye, Pharmacotherapy Outcomes Research Center, University of Utah
Benner JS, Glynn RJ, et al. Long-term Persisitence in Use of Statin Therapy in Elderly Patients the Journal of the American Medical Association 2002;288:455-461
Hess, LM, Raebel, MA, et al. Measurement of Adherence in Pharmacy Administrative Databases: A Proposal for Statndard Definitions and Preferred Measures The Annals of Pharmacotherapy 2006;40:1280-1288
data(cmos) predt <- preRxData(df=cmos,id=ptid,rxDate=rxDay,daySupply=supplies) postdt <-postRxData(predt) medPDC(postdt)