Description Usage Arguments Value Examples
Calculates the cumulative number of daily doses of a drug of interest dispensed for each patient. Results can be limited to only patients who have been prescribed more than a desired threshold number of daily doses.
1 2 3 |
df |
a data frame containing prescribing records to be analysed - records must contain at least a paitent ID, drug ID, a prescription date and the number of daily doses disepnsed |
drug |
a string containing a drug ID to be used to limit the prescribing data to the drug(s) of interest, accepts regular expressions |
threshold |
a number representing the minimum number of daily doses that must be present for the patient to be considered exposed |
patient_id_col |
a string, the name of the column in |
drug_id_col |
a string, the name of the column in |
presc_date_col |
a string, the name of the column in |
dd_disp_col |
a string, the name of the column in |
date_format |
a string, the format of the dates in |
a data frame containing patient IDs and the corresponding number of prescriptions, number of daily doses dispensed and the date of the first prescription of the drug of interest
1 2 3 | dd_sum(synth_presc, drug = "CITALOPRAM", threshold = 500,
drug_id_col = "approved_name", presc_date_col = "presc_date",
dd_disp_col = "ddd_dispensed", date_format = "%Y-%m-%d")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.