Studies investigating or controlling for the impact of antipsychotic medications often need to quantify the amount of medication to which an individual is or has been exposed. As different antipsychotics have different potencies, the task is more complicated than using each medication’s daily dosage in milligrams, for example. chlorpromazineR is an R package to calculate dose equivalents for common oral and injectable antipsychotic medications based on conversion factors from the published literature. We do not propose to suggest which conversion factors are appropriate to use, or how to interpret the converted data. All users should also refer to the papers from which the conversion factor data originates to determine whether the use of such data is appropriate for their study.

We hope that this package is of use to scientists who do clinical research involving antipsychotic medications. Specifically, the goals of this package are:

  • to improve transparency and consistency in calculating chlorpromazine equivalents,
  • to reduce human error and improve accuracy,
  • and to simplify workflows for large datasets, as from chart reviews of electronic health records.

For further details and usage, please see the walkthrough vignette.

This package is in production and not yet suitable for production use. We welcome feedback–please contact via [email protected] or file an issue.

Installation

The CRAN release version (recommended) can be installed via the command: install.packages("chlorpromazineR").

The development version of this package can be installed via the command: devtools::install_github("ropensci/chlorpromazineR").

Usage

Once installed, load package with library(chlorpromazineR). The package’s main conversion functions are documented and usage and examples can be seen with help(to_cpz) and help(to_ap).

Convert data to chlorpromazine equivalents

participant_ID <- c("P01", "P02", "P03", "P04")
age <- c(42, 29, 30, 60) # not used in calculation
antipsychotic <- c("olanzapine", "olanzapine", "quetiapine", "ziprasidone")
dose <- c(10, 12.5, 300, 60)
example_oral <- data.frame(participant_ID, age, antipsychotic, dose, 
                           stringsAsFactors = FALSE)
to_cpz(example_oral, ap_label = "antipsychotic", dose_label = "dose", 
       route = "oral")

Disclaimer

This package is not for clinical use. The authors assume no liability. All work must be verified independently. Use at own risk.

Licence

Copyright (C) 2019 Eric E. Brown. This software is licensed under the GPL-3.