medCMG {medAdherence} | R Documentation |
medCMG
function calculates the Continuous measure of Medication Gaps. This is non-adherence rate. The higher CMG,
the lower adherence rate.
Continuous measure of Medication Gaps (CMG) was estimated by
total number of days in treatment gaps (days for which a drug was unavailable) divided by the duration of the
time period of interest.
The formula is: (Total Days in Study - Total Days' Supply)/(Total Days in Study) x 100. If numerator is negative, it will be set to '0'.
medCMG(df=data,followUpDays=365)
df |
a dataframe created by preData funtion |
followUpDays |
days of total study period. 365 is the default, 12 month follow up. |
Xiangyang Ye, Pharmacotherapy Outcomes Research Center, University of Utah
Steiner, JF and Prochazka, AV The Assessment of Refill Compliance Using Pharmacy Records: Methods, Validity, and Application
Journal of Clinical Epidemiology 1997;50:105-116
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) medCMG(predt)