Learn R Programming

boodist (version 1.0.0)

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

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.

Arguments

ncp

non-centrality parameter, a non-negative number

q

a quantile

p

probability corresponding to the quantile q

Examples

Run this code
library(boodist)
nu <- findChi2df(ncp = 10, q = 3, p = 0.1)
pchisq(3, df = nu, ncp = 10) # should be 0.1

Run the code above in your browser using DataLab