calculateMedicationSpecificAdherence: Calculate the adherence for each patient and all their drug...

View source: R/proportionDaysCovered.R

calculateMedicationSpecificAdherenceR Documentation

Calculate the adherence for each patient and all their drug classes

Description

Calculate the adherence for each patient and all their drug classes

Usage

calculateMedicationSpecificAdherence(
  treatmentRowNames,
  treatment,
  startDates,
  endDates,
  refillPeriod
)

Arguments

treatmentRowNames

the row ID from the treatment table identifying one patent and one drug class

treatment

the complete treatment table matrix

startDates

a data frame containing the start dates of the study for each patient

endDates

a data frame containing the end dates of the study for each patient

refillPeriod

length of a prescription refill period in days

Value

adherences for a patient and drug class


smm52/timeBlocks documentation built on Nov. 27, 2022, 3:54 a.m.