Description Usage Arguments Value
sampling function from conjugate Gaussian
1 | rnormcj(y, sigma2 = 1, mu = 0, tau2 = 10)
|
y |
a numeric vector / observations y ~ N(theta,sigma2) |
sigma2 |
a scalar / variance of likelihood |
mu |
a scalar / mean of prior theta ~ N(mu,tau2) |
tau2 |
a scalar / variance of prior |
a numeric vector / normal random sample
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.