Bayesian Tests of Two Proportions: A Tutorial With R and JASP

Tabea Hoffmann*, Abe Hofman, Eric-Jan Wagenmakers

*Corresponding author for this work

    Research output: Contribution to journalArticleAcademicpeer-review

    3 Citations (Scopus)
    596 Downloads (Pure)

    Abstract

    The need for a comparison between two proportions (sometimes called an A/B test) often arises in business, psychology, and the analysis of clinical trial data. Here we discuss two Bayesian A/B tests that allow users to monitor the uncertainty about a difference in two proportions as data accumulate over time. We emphasize the advantage of assigning a dependent prior distribution to the proportions (i.e., assigning a prior to the log odds ratio). This dependent-prior approach has been implemented in the open-source statistical software programs R and JASP. Several examples demonstrate how JASP can be used to apply this Bayesian test and interpret the results.
    Original languageEnglish
    Pages (from-to)239-277
    Number of pages39
    JournalMethodology
    Volume18
    Issue number4
    DOIs
    Publication statusPublished - 22-Dec-2022

    Keywords

    • Bayes factor
    • log odds ratio
    • contingency tables
    • Bayesian estimation

    Fingerprint

    Dive into the research topics of 'Bayesian Tests of Two Proportions: A Tutorial With R and JASP'. Together they form a unique fingerprint.

    Cite this