baymedr: An R Package for the Calculation of Bayes Factors for Equivalence, Non-Inferiority, and Superiority Designs
Clinical trials often seek to determine the equivalence, non-inferiority, or superiority of an experimental condition (e.g., a new drug) compared to a control condition (e.g., a placebo or an already existing drug). The use of frequentist statistical methods to analyze data for these types of designs is ubiquitous. Importantly, however, frequentist inference has several limitations. Bayesian inference remedies these shortcomings and allows for intuitive interpretations. In this article, we outline the frequentist conceptualization of equivalence, non-inferiority, and superiority designs and discuss its disadvantages. Subsequently, we explain how Bayes factors can be used to compare the relative plausibility of competing hypotheses. We present baymedr, an R package that provides user-friendly tools for the computation of Bayes factors for equivalence, non-inferiority, and superiority designs. Detailed instructions on how to use baymedr are provided and an example illustrates how already existing results can be reanalyzed with baymedr.