powered by
Find the non-centrality parameter of a Chi-squared distribution given a quantile, its corresponding probability, and the degrees of freedom.
findChi2ncp(df, q, p)
The non-centrality parameter of the Chi-squared distribution with degrees of freedom parameter df and with cumulative probability
df
p at the quantile q.
p
q
degrees of freedom, a positive number
a quantile
probability corresponding to the quantile q
library(boodist) ncp <- findChi2ncp(df = 1, q = 3, p = 0.1) pchisq(3, df = 1, ncp = ncp) # should be 0.1
Run the code above in your browser using DataLab