Article Version of Record

Bayesian tests of two proportions: A tutorial with R and JASP

Author(s) / Creator(s)

Hoffmann, Tabea
Hofman, Abe
Wagenmakers, Eric-Jan

Abstract / Description

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.

Keyword(s)

Bayes factor Bayesian estimation contingency tables log odds ratio

Persistent Identifier

Date of first publication

2022-12-23

Journal title

Methodology

Volume

18

Issue

4

Page numbers

239–277

Publisher

PsychOpen GOLD

Publication status

publishedVersion

Review status

peerReviewed

Is version of

Citation

Hoffmann, T., Hofman, A., & Wagenmakers, E.-J. (2022). Bayesian tests of two proportions: A tutorial with R and JASP. Methodology, 18(4), 239-277. https://doi.org/10.5964/meth.9263
  • Author(s) / Creator(s)
    Hoffmann, Tabea
  • Author(s) / Creator(s)
    Hofman, Abe
  • Author(s) / Creator(s)
    Wagenmakers, Eric-Jan
  • PsychArchives acquisition timestamp
    2023-01-23T14:06:47Z
  • Made available on
    2023-01-23T14:06:47Z
  • Date of first publication
    2022-12-23
  • Abstract / Description
    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.
    en_US
  • Publication status
    publishedVersion
  • Review status
    peerReviewed
  • Citation
    Hoffmann, T., Hofman, A., & Wagenmakers, E.-J. (2022). Bayesian tests of two proportions: A tutorial with R and JASP. Methodology, 18(4), 239-277. https://doi.org/10.5964/meth.9263
    en_US
  • ISSN
    1614-2241
  • Persistent Identifier
    https://hdl.handle.net/20.500.12034/7988
  • Persistent Identifier
    https://doi.org/10.23668/psycharchives.12447
  • Language of content
    eng
  • Publisher
    PsychOpen GOLD
  • Is version of
    https://doi.org/10.5964/meth.9263
  • Is related to
    https://osf.io/anvg2
  • Keyword(s)
    Bayes factor
    en_US
  • Keyword(s)
    Bayesian estimation
    en_US
  • Keyword(s)
    contingency tables
    en_US
  • Keyword(s)
    log odds ratio
    en_US
  • Dewey Decimal Classification number(s)
    150
  • Title
    Bayesian tests of two proportions: A tutorial with R and JASP
    en_US
  • DRO type
    article
  • Issue
    4
  • Journal title
    Methodology
  • Page numbers
    239–277
  • Volume
    18
  • Visible tag(s)
    Version of Record
    en_US