findChi2ncp: Find non-centrality parameter

View source: R/findParameter.R

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

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

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