bernoulli_posterior_plot: Plot the posterior distribution of a Bernoulli model with...

Description Usage Arguments Examples

View source: R/bernoulli_models.R

Description

Plot the posterior distribution of a Bernoulli model with Beta prior

Usage

1
bernoulli_posterior_plot(n, m, alpha, beta, show_hpd = FALSE)

Arguments

n

Number of trials

m

Number of successes

alpha

First shape parameters of the Beta prior

beta

Second shape parameter of the Beta prior

show_hpd

Show the HPD interval

Examples

1
2
bernoulli_posterior_plot(250, 139, 5, 5)
bernoulli_posterior_plot(100, 60, 2, 2)

mark-andrews/barfoo documentation built on July 1, 2020, 12:11 a.m.