calculateFixedAdherenceFixedPeriod: Calculates medication adherence between start and end dates

calculateFixedAdherenceFixedPeriodR Documentation

Calculates medication adherence between start and end dates

Description

Calculates medication adherence between start and end dates

Usage

calculateFixedAdherenceFixedPeriod(
  serialDf,
  startDates,
  endDates,
  atcCode = "C09",
  refillPeriod = 90,
  idColumn = "PATIENT",
  dateColumn = "VISIT",
  atcColumn = "ATC"
)

Arguments

serialDf

the data frame with the serial data

startDates

dataframe with ID and a date to start the adherence calculation

endDates

dataframe with ID and a date to end the adherence calculation

atcCode

regular expression for the class of medication ATC code (default: C09 which stands for any RAAS)

refillPeriod

length of the refill period (default 90 days)

idColumn

name of ID column: default is PATIENT

dateColumn

name of date column: default is VISIT. This column has to be of class Date

atcColumn

name of the column with the ATC codes: default is ATC

Value

time block data and dates in wide format


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