listAllAdherences: Helper function to call individual (one ATC code) adherence...

listAllAdherencesR Documentation

Helper function to call individual (one ATC code) adherence calculation for a list of ATC codes

Description

Helper function to call individual (one ATC code) adherence calculation for a list of ATC codes

Usage

listAllAdherences(
  atcCode,
  serialDf,
  startDates,
  endDates,
  refillPeriod,
  stopPeriod,
  idColumn,
  dateColumn,
  atcColumn
)

Arguments

atcCode

regular expression for the class of medication ATC code

serialDf

the data frame with the serial data

startDates

dataframe with ID and a date to start the adherence calculation (optional)

endDates

dataframe with ID and a date to end the adherence calculation (optional)

refillPeriod

length of the refill period (default 90 days)

stopPeriod

number of days after which the medication is considered to have stopped (optional)

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.