beta_binomial_plot: Visualize a Beta-Binomial model

Description Usage Arguments Examples

Description

Visualize the prior and posterior pdfs for a Beta-Binomial model.

Usage

1
beta_binomial_plot(a, b, x = NULL, n = NULL)

Arguments

a, b

Shape parameters of the Beta prior (Beta(a,b))

x, n

Observed number of successes & trials, respectively

Examples

1
2
3
library(ggplot2)
beta_binomial_plot(a=1, b=1)
beta_binomial_plot(a=1, b=1, x=5, n=10)

ajohns24/MacBayes documentation built on May 19, 2019, 12:41 a.m.