qchisqAppr {DPQ}R Documentation

Compute Approximate Quantiles of the Chi-Squared Distribution

Description

Compute quantiles (inverse distribution values) for the chi-squared distribution. using Johnson,Kotz,.. ............TODO.......

Usage

qchisqKG    (p, df, lower.tail = TRUE, log.p = FALSE)
qchisqWH    (p, df, lower.tail = TRUE, log.p = FALSE)
qchisqAppr  (p, df, lower.tail = TRUE, log.p = FALSE, tol = 5e-7)
qchisqAppr.R(p, df, lower.tail = TRUE, log.p = FALSE, tol = 5e-07,
             maxit = 1000, verbose = getOption("verbose"), kind = NULL)

Arguments

p

vector of probabilities.

df

degrees of freedom > 0, maybe non-integer; must have length 1.

lower.tail, log.p

logical, see, e.g., qchisq(); must have length 1.

tol

non-negative number, the convergence tolerance

maxit

the maximal number of iterations

verbose

logical indicating if the algorithm should produce “monitoring” information.

kind

the kind of approximation; if NULL, the default, the approximation chosen depends on the arguments; notably it is chosen separately for each p. Otherwise, it must be a character string. The main approximations are Wilson-Hilferty versions, when the string contains "WH". More specifically, it must be one of the strings

"chi.small"

particularly useful for small chi-squared values p;... ...

"WH"

... ...

"p1WH"

... ...

"WHchk"

... ...

"df.small"

particularly useful for small degrees of freedom df... ...

Value

...

Author(s)

Martin Maechler

See Also

qchisq. Further, our approximations to the non-central chi-squared quantiles, qnchisqAppr

Examples

  ## TODO

[Package DPQ version 0.5-8 Index]