cran checks R-CMD-check Coverage status DOI

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 results from this package should be double checked for accuracy when used in production. We welcome feedback–please contact via 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). It is strongly recommended to read the articles from which the keys are derived, and to verify that the program’s output is producing results as expected. This package facilitates bulk conversion, but should be verified to ensure it produces the results as expected.

Online calculator

An online calculator using this package is available as a shiny app.

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-2021 Eric E. Brown. This software is licensed under the GPL-3.