Description Usage Format Examples
This data set contains synthetic sequential A/B data (500 observations in
each of the two groups, where the observations are alternating between
groups). y1
denotes the number of successes for the first group,
n1
denotes the corresponding total number of observations for the
first group. Similarly, y2
denotes the number of successes for the
second group and n2
denotes the corresponding total number of
observations for the second group.
1 |
A list with 4 elements.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | data(seqdata)
# conduct Bayesian A/B test with default settings
ab <- ab_test(data = seqdata)
print(ab)
# produce sequential plot of posterior probabilities of the hypotheses
plot_sequential(ab, thin = 4)
# example of good width and height values for saving to file
cairo_pdf(file.path(tempdir(), "test_plot.pdf"),
width = 530 / 72, height = 400 / 72)
plot_sequential(ab)
dev.off()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.