DPQ (version 0.3-3)

dgamma-utils: Utility Functions for dgamma() -- Pure R Versions

Description

R transcriptions of the C code utility functions for dgamma() and similar “base” density functions by Catherine Loader.

Usage

dpois_raw(x, lambda, log)
bd0(x, np, verbose = getOption("verbose"))
stirlerr(n)

Arguments

x, n

a number (numeric).

lambda, np

a number (numeric; distrubution parameters.

log

logical indicating if the log-density should be returned, otherwise the density at x.

verbose

logical indicating if some information about the computations are to be printed.

Value

a number

See Also

dgamma, dpois.

Examples

Run this code
# NOT RUN {
n <- seq(1, 50, by=1/4)
plot(n, sapply(n, stirlerr), type = "b", log="xy")
# }

Run the code above in your browser using DataLab