Description Usage Arguments Details Value Examples
A parammod
with beta-distributed parameters
1 | param_beta(a0, a1, b0, b1)
|
a0 |
|
a1 |
|
b0 |
|
b1 |
|
This model represents a prior on theta with:
theta_0 ~ Beta(a0,a1)
theta_k ~ Beta(b0,b1)
for k = 1 ... kappa
a parammod
1 2 3 | ## theta0 ~ Beta(1,9); thetak ~ Beta(9,1)
pb <- param_beta(1,9,9,1)
pb$r(5) ## a draw with 5 within-block parameters
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.