Description Usage Arguments Value References Examples
The cumulative distribution function for the distribution of a positive linear combination of χ^2 random variables with the weights (λ_1, …, λ_K), degrees of freedom (ν_1, …, ν_K), and non-centrality parameters (δ_1, …, δ_K).
1 2 |
x |
numeric; value of x > 0 (P[X ≤ x]). |
lambda |
numeric vector; weights (λ_1, …, λ_K). |
nu |
integer vector; degrees of freedom (ν_1, …, ν_K). |
delta |
numeric vector; non-centrality parameters (δ_1, …, δ_K). |
mode |
numeric; the mode of calculation (see Farabrother, 1984) |
maxit1 |
integer; the maximum number of iteration. |
eps |
numeric; the desired level of accuracy. |
prob
: the distribution function.
Farebrother, R. W. (1984). Algorithm AS 204: the distribution of a positive linear combination of χ^2 random variables. J R Stat Soc Ser C Appl Stat. 33(3): 332–339. https://rss.onlinelibrary.wiley.com/doi/10.2307/2347721.
1 2 3 4 5 6 7 8 9 | # Table 1 of Farabrother (1984)
# Q6 (The taget values are 0.0061, 0.5913, and 0.9779)
pimeta::pwchisq( 20, lambda = c(7,3), nu = c(6,2), delta = c(6,2))
pimeta::pwchisq(100, lambda = c(7,3), nu = c(6,2), delta = c(6,2))
pimeta::pwchisq(200, lambda = c(7,3), nu = c(6,2), delta = c(6,2))
# [1] 0.006117973
# [1] 0.5913421
# [1] 0.9779184
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.