findChi2df {boodist} | R Documentation |
Find degrees of freedom
Description
Find the degrees of freedom parameter of a non-central Chi-squared distribution given a quantile, its corresponding probability, and the non-centrality parameter.
Usage
findChi2df(ncp, q, p)
Arguments
ncp |
non-centrality parameter, a non-negative number |
q |
a quantile |
p |
probability corresponding to the quantile |
Value
The degrees of freedom parameter of the non-central Chi-squared
distribution with non-centrality parameter ncp
and with
cumulative probability p
at the quantile q
.
Examples
library(boodist)
nu <- findChi2df(ncp = 10, q = 3, p = 0.1)
pchisq(3, df = nu, ncp = 10) # should be 0.1
[Package boodist version 1.0.0 Index]