dnorminvchi: The Normal-InvChi distribution

Description Usage Arguments Note Examples

View source: R/distns.R

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)

mas3321 documentation built on May 2, 2019, 4:42 p.m.

Related to dnorminvchi in mas3321...