View source: R/helperFunctions.R
findPrescriptionstAtBaseline | R Documentation |
Finds the prescription information around the baseline visit by looking half a block on either side of baseline. The information is either returned in binary form or in cumulative DDDs depending on the useDoses flag
findPrescriptionstAtBaseline( prescriptions, baselineDates, anyPrescriptions, blockDays, useDoses )
baselineDates |
the dataframe with all patient IDs and baseline visit dates |
blockDays |
length of a block. Baseline info will be searched for the block of length blockDays where the baseline visit sits right in the middle |
serialDf |
the data frame with all the prescription data |
usesDoses |
flag indicating whether to use the presence of a prescription or the cumulate DDDs |
data frame with baseline prescription information
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.