pgamma.deriv(q, shape, tmax = 100)
pgamma
but
these must be vectors of positive values only and finite.q
value).pgamma
directly).shape =
$a$.
The first and second derivatives with respect to $q$ and $a$
are returned. This function is similar in spirit to
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 $a \leq x \leq 1$ or or $x < a$, else otherwise a continued fraction expansion. Machine overflow can occur for large values of $x$ when $x$ is much greater than $a$.
pgamma.deriv.unscaled
,
pgamma
.x <- seq(2, 10, length = 501)
head(ans <- pgamma.deriv(x, 2))
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