The Inverse Chi distribution

Description

Density, distribution function, quantile function and random generation for the inverse chi distribution with parameters a and b

Usage

1
2
3
4
5
6
7
  dinvchi(x, a, b)

  pinvchi(x, a, b)

  qinvchi(p, a, b)

  rinvchi(n, a, b)

Arguments

x

vector of quantities

p

vector of probabilities

n

number of observations

a

first parameter. Must be strictly positive.

b

second parameter. Must be strictly positive.

Note

If X~Inv-Chi(a,b) then it has density f(x)=2b^ax^(-2*a-1)e^(-b/x^2)/Gamma(a). Also 1/X^2~Gamma(a,b).

Examples

1
2
3
4
dinvchi(1, 2, 2)
pinvchi(1, 2, 2)
qinvchi(0.95, 2, 2)
rinvchi(1, 2, 2)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.