Description Usage Arguments Value Author(s) Examples
Computes the log of the posterior density of a mean M and a variance S2 when a sample is taken from a normal density and a standard noninformative prior is used.
1 | normchi2post(theta,data)
|
theta |
vector of parameter values M and S2 |
data |
vector containing the sample observations |
value of the log posterior
Jim Albert
1 2 3 | parameter=c(25,5)
data=c(20, 32, 21, 43, 33, 21, 32)
normchi2post(parameter,data)
|
[1] -61.54247
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.