chi2inv: Inverse Chi-Sq

View source: R/chi2inv.R

chi2invR Documentation

Inverse Chi-Sq

Description

Inverse Chi-Sq

Usage

chi2inv(x, n)

Arguments

x

probability that Chi^2 random variable is less than or equal to x (scalar).

n

degrees of freedom(scalar)

Details

Computes the inverse Chi^2 distribution corresponding to a given probability that a Chi^2 random variable with the given degrees of freedom is less than or equal to x. Uses chi2cdf.m.

Value

corresponding value of x for given probability.

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

References

Aster, R.C., C.H. Thurber, and B. Borchers, Parameter Estimation and Inverse Problems, Elsevier Academic Press, Amsterdam, 2005.

See Also

chi, chi2cdf

Examples

x = seq(from=0.1, to=0.9, length=10) 
h = chi2cdf(x, 3)

chi2inv(h, 3)


PEIP documentation built on Aug. 21, 2023, 9:10 a.m.