Update $theta$ in Gibbs sampling
1 | update_theta(theta, tau, mu, a1 = 0, b1 = 50, exponent = 0:199)
|
theta |
scalar |
tau |
scalar |
mu |
vector of means |
a1 |
hyperparameter, prior mean for theta |
b1 |
hyperparameter, prior sd for theta |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.