Skip to main content
QUICK REVIEW

[Paper Review] baymedr: An R Package for the Calculation of Bayes Factors for Equivalence, Non-Inferiority, and Superiority Designs

Maximilian Linde, Don van Ravenzwaaij|arXiv (Cornell University)|Oct 25, 2019
Statistical Methods in Clinical TrialsMathematics25 references11 citations
TL;DR

This paper introduces baymedr, an R package that enables researchers to compute Bayes factors for equivalence, non-inferiority, and superiority designs, offering a Bayesian alternative to frequentist methods. By providing intuitive, user-friendly tools, the package allows for more interpretable hypothesis testing in clinical trial research.

ABSTRACT

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.

Motivation & Objective

  • To address the limitations of frequentist methods in analyzing equivalence, non-inferiority, and superiority designs in clinical trials.
  • To provide a Bayesian alternative that allows for more intuitive interpretation of evidence in favor of competing hypotheses.
  • To develop an accessible R package that streamlines the computation of Bayes factors for these specific designs.
  • To enable researchers to reanalyze existing data using Bayesian methods with minimal technical overhead.

Proposed method

  • The paper outlines the conceptual framework of frequentist approaches to equivalence, non-inferiority, and superiority testing, highlighting their interpretive shortcomings.
  • It introduces Bayes factors as a measure of relative evidence between competing hypotheses, offering a more intuitive interpretation than p-values.
  • The baymedr package is implemented in R to compute Bayes factors for one-sample, paired, and two-sample t-tests in the context of equivalence, non-inferiority, and superiority designs.
  • The package supports both two-sided and one-sided tests, allowing users to specify meaningful effect size bounds for equivalence and non-inferiority.
  • Bayes factors are calculated using default priors and user-defined parameters, with outputs that reflect the strength of evidence for each hypothesis.
  • The method is demonstrated through a detailed example showing how existing results can be reanalyzed using baymedr, illustrating practical application.

Experimental results

Research questions

  • RQ1How can Bayesian methods improve the interpretation of evidence in equivalence, non-inferiority, and superiority trials compared to frequentist approaches?
  • RQ2What are the key limitations of frequentist inference in clinical trial designs focused on equivalence or relative efficacy?
  • RQ3How can Bayes factors be effectively computed and interpreted for these specific types of clinical trial designs?
  • RQ4To what extent can the baymedr package facilitate the transition from frequentist to Bayesian analysis in clinical research?

Key findings

  • The baymedr package successfully provides a user-friendly interface for computing Bayes factors in equivalence, non-inferiority, and superiority designs using standard t-test frameworks.
  • Bayes factors computed via baymedr offer a more intuitive interpretation of evidence compared to p-values, reducing common misinterpretations in hypothesis testing.
  • The package enables researchers to reanalyze existing data with Bayesian methods, demonstrating practical utility in real-world clinical trial settings.
  • The implementation supports flexible specification of effect size bounds and prior distributions, enhancing methodological transparency.
  • The example application shows that baymedr can reproduce standard frequentist results while adding interpretive depth through evidence ratios.
  • The tool facilitates a shift toward Bayesian inference in clinical research by lowering the technical barrier to entry for non-expert users.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.