dnorminvchi {nclbayes} | R Documentation |
Density and random generation for the normal-inv-chi distribution with parameters b, c, g and h.
dnorminvchi(mu, sigma, b, c, g, h) rnorminvchi(n, b, c, g, h)
mu |
vector of quantities. |
sigma |
vector of quantities. |
b |
mean. |
c |
must be strictly positive. |
g |
must be strictly positive. |
h |
must be strictly positive. |
n |
number of observations. |
If (mu,sigma)^T~NInvChi(b,c,g,h) then mu|sigma~N(b,sigma^2/c) and sigma~Inv-Chi(g,h). Also mu~t_(2g)(b,h/(gc)).
dnorminvchi(1, 1/sqrt(2), 1, 2, 5, 3) rnorminvchi(1, 1, 2, 5, 3)