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)
|
Loading required package: LearnBayes
Loading required package: ggplot2
Loading required package: gridExtra
Loading required package: shiny
There were 50 or more warnings (use warnings() to see the first 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.