findChi2df: Find degrees of freedom

View source: R/findParameter.R

findChi2dfR 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 q

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

boodist documentation built on Aug. 10, 2023, 5:10 p.m.