Description Usage Arguments Value Author(s) Examples
View source: R/gibbs_betabin.R
Implements Gibbs sampling of the beta-binomial distribution
1 | gibbs_betabin(n, a, b, p = 0.5, iter = 1000)
|
n |
binomial sample size |
a |
first beta shape parameter |
b |
second beta shape parameter |
p |
starting value of proportion in algorithm |
iter |
number of iterations |
matrix of simulated draws from the algorithm
Jim Albert
1 | sp <- gibbs_betabin(20, 5, 5, 100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.