Ixpq | R Documentation |
pbeta()
Computes the normalized incomplete beta function, in pure R code, derived from Nico Temme's Maple code for computing Table 1 in Gil et al (2023).
It uses a continued fraction, similarly to bfrac()
in the TOMS 708
algorithm underlying R's pbeta()
.
Ixpq(x, l_x, p, q, tol = 3e-16, it.max = 100L, plotIt = FALSE)
x |
numeric |
l_x |
|
p , q |
the two shape parameters of the beta distribution. |
tol |
positive number, the convergence tolerance for the continued fraction computation. |
it.max |
maximal number of continued fraction steps. |
plotIt |
a |
a vector like x
or l_x
with corresponding
pbeta(x, *)
values.
Martin Maechler; based on original Maple code by Nico Temme.
Gil et al. (2023)
pbeta
, pbetaRv1()
, ..
x <- seq(0, 1, by=1/16)
r <- Ixpq(x, 1-x, p = 4, q = 7, plotIt = TRUE)
cbind(x, r)
## and "test" ___FIXME__
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.