| calculateFixedAdherenceList | R Documentation |
Calculates medication adherence based on a fixed, specified refill time period
calculateFixedAdherenceList(
serialDf,
startDates = NA,
endDates = NA,
atcCodeList = c("C09", "C10"),
refillPeriod = 90,
stopPeriod = NA,
idColumn = "PATIENT",
dateColumn = "VISIT",
atcColumn = "ATC",
doPCAScore = F,
combinedScore = T
)
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 |
doPCAScore |
flag whether a PCA score from the medication data should be calculated |
combinedScore |
flag whether a combined PCA scores for all ATC codes in the list should be calculated |
atcCode |
list of regular expressions for the classes of medication ATC code (default: c('C09', 'C10')) |
time block data and dates in wide format
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.