Description Usage Arguments Value Examples
Update sigma in Gibbs sampling
1 | update_sigma(y, mu, s, theta, tau)
|
y |
data vector |
mu |
length-K vector of cluster means |
s |
vector of cluster assignments, same length as y |
theta |
hyperparameter, a scalar |
tau |
hyperparameter, a scalar |
updated sigma, a vector of cluster standard deviations
1 | update_sigma(rnorm(6), mu = c(0, 1, 1), s = c(1,1,2,2,3,3), theta = 1, tau = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.