dinvchi: The Inverse Chi distribution

Description Usage Arguments Note Examples

View source: R/distns.R

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)

mas3321 documentation built on May 31, 2017, 1:50 a.m.

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