View source: R/update_functions_ramses.R
Generates a value from the posterior distribution in the case where there
is a multivariate normal likelihood and an inverse gamma prior.
Argument model:
y ~ Nn(mu, sig2*R)
sig2 ~ IG(a,b)
1 | update_normal_invgamma(y, a, b, mu, R, R_inv)
|
y |
vector of values at the likelihood level. |
a |
prior shape value for inverse gamma. |
b |
prior SCALE value for inverse gamma. |
mu |
mean vector for multivariate normal. |
R |
correlation matrix for multivariate normal. |
R_inv |
scaled precision matrix, alternative specification to R. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.