Learn R Programming

boodist (version 1.0.0)

findChi2ncp: 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)

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.

Arguments

df

degrees of freedom, a positive number

q

a quantile

p

probability corresponding to the quantile q

Examples

Run this code
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