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