Update $theta$ in Gibbs sampling
1 2 | update_theta_gamma(theta, tau, mu, shape = 3, scale = 20,
exponent = 0:199)
|
theta |
scalar |
tau |
scalar |
mu |
vector of means |
shape |
hyperparameter, prior shape for theta |
scale |
hyperparameter, prior scale for theta |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.