medCSA {medAdherence} | R Documentation |
medCSA
function calculates the Single-interval medication availability.
Continuous Single-interval measure of medication Availability (CSA) was calculated by the days' supply of a medication divided by the number of days in the interval from the dispensation date up to, but not include, the next dispensation date (or the study end).
medCSA(df=data,digits=2)
df |
a dataframe created by postData funtion |
digits |
round to decimals. Default is 2 |
Xiangyang Ye, Pharmacotherapy Outcomes Research Center, University of Utah
Steiner, JG and Prochazka, AV. The Assessment of Refill Compliance Using Pharmacy Records: Methods, Validity, and Applications.
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
cmos <- rxExampledt() predt <- preRxData(df=cmos,id=ptid,rxDate=rxDay,daySupply=supplies) postdt <-postRxData(predt) medCSA(postdt)