prob_wheel: Plot Probability Wheel

Description Usage Arguments Author(s) Examples

View source: R/prob_wheel.R

Description

Function for visualizing prior and posterior probabilities of the hypotheses as a probability wheel.

Usage

1
prob_wheel(x, type = "posterior")

Arguments

x

object of class "ab".

type

character indicating whether to plot a probability wheel visualizing the prior probabilities of the hypotheses (i.e., type = "prior") or the posterior probabilities of the hypotheses (i.e., type = "posterior"). The default is "posterior".

Author(s)

Quentin F. Gronau

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# synthetic data
data <- list(y1 = 10, n1 = 28, y2 = 14, n2 = 26)

# Bayesian A/B test with default settings
ab <- ab_test(data = data)
print(ab)

# visualize prior probabilities of the hypotheses
prob_wheel(ab, type = "prior")

# visualize posterior probabilities of the hypotheses
prob_wheel(ab, type = "posterior")

quentingronau/abtest documentation built on Nov. 23, 2021, 1:43 a.m.