Update a mu vector (mu1 or mu2)
1 | update_mu(muvec, sigmavec, ymat, zmat, indicator, mu0 = 0, t0 = 1/1e+06)
|
muvec |
mu vector to be updated |
sigmavec |
sd vector (goes with mu vector) |
ymat |
data matrix |
zmat |
a trinary indicator matrix |
indicator |
(0 or 1) indicator to denote which mu vector (1 or 2) is being updated |
mu0 |
hyperparameter, mean of normal hyperprior |
t0 |
hyperparameter, precision of normal hyperprior |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.