Description Usage Arguments Value Examples
Calculates the mean, median, minimum and maximum numbers of prescriptions per patient within the data - either for all drugs, or for those matching the specified ID
1 2 | presc_per_patient(df, drug = ".", patient_id_col = "patient_id",
drug_id_col = "drug_id")
|
df |
a data frame containing prescribing records to be analysed - records must contain at least a drug identifier |
drug |
a string corresponding to a drug identifier to be matched |
patient_id_col |
a string, the name of the column in |
drug_id_col |
a string, the name of the column in |
a dat aframe containing the mean, median, minimum and maximum number of prescriptions per patient
1 2 | presc_per_patient(synth_presc, drug_id_col = "approved_name")
presc_per_patient(synth_presc, drug = "SIMVASTATIN", drug_id_col = "approved_name")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.