Description Usage Arguments Value Examples
Consider a Beta-Binomial Bayesian model for parameter π with a Beta(alpha, beta) prior on π and Binomial likelihood with n trials and y successes. Given information on the prior (alpha and data) and data (y and n), this function summarizes the mean, mode, and variance of the prior and posterior Beta models of π.
1 | summarize_beta_binomial(alpha, beta, y = NULL, n = NULL)
|
alpha, beta |
positive shape parameters of the prior Beta model |
y |
number of successes |
n |
number of trials |
a summary table
1 | summarize_beta_binomial(alpha = 1, beta = 15, y = 25, n = 50)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.