dnorminvchi: The Normal-InvChi distribution

Description Usage Arguments Note Examples

Description

Density and random generation for the normal-inv-chi distribution with parameters b, c, g and h.

Usage

1
2
3
  dnorminvchi(mu, sigma, b, c, g, h)

  rnorminvchi(n, b, c, g, h)

Arguments

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

Note

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)).

Examples

1
2
dnorminvchi(1, 1/sqrt(2), 1, 2, 5, 3)
rnorminvchi(1, 1, 2, 5, 3)


Search within the mas3321 package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.