Description Usage Arguments Note Examples

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

1 2 3 | ```
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)).

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.