Last chance! 50% off unlimited learning
Sale ends in
The first two derivatives of the incomplete gamma integral.
pgamma.deriv(q, shape, tmax = 100)
As in pgamma
but
these must be vectors of positive values only and finite.
Maximum number of iterations allowed in the computation
(per q
value).
The first 5 columns, running from left to right, are the derivatives
with respect to:
pgamma
directly).
Write shape =
pgamma
;
define
pgamma(x, a)
.
Currently a 6-column matrix is returned (in the future this
may change and an argument may be supplied so that only what
is required by the user is computed.)
The computations use a series expansion
for
Moore, R. J. (1982) Algorithm AS 187: Derivatives of the Incomplete Gamma Integral. Journal of the Royal Statistical Society, Series C (Applied Statistics), 31(3), 330--335.
# NOT RUN {
x <- seq(2, 10, length = 501)
head(ans <- pgamma.deriv(x, 2))
# }
# NOT RUN {
par(mfrow = c(2, 3))
for (jay in 1:6)
plot(x, ans[, jay], type = "l", col = "blue", cex.lab = 1.5,
cex.axis = 1.5, las = 1, log = "x",
main = colnames(ans)[jay], xlab = "q", ylab = "")
# }
Run the code above in your browser using DataLab