Learn R Programming

tweedie (version 3.2.2)

ptweedie_tail_integrate: Tweedie CDF evaluation using direct integration (in the tails only)

Description

Distribution function evaluation in the distribution tails using direct integration of the density function.

Usage

ptweedie_tail_integrate(q, mu, phi, power, lower.tail = TRUE, IGexact = TRUE,
                               fallback = TRUE)

Arguments

q

vector of quantiles.

mu

vector of mean \(\mu\).

phi

vector of dispersion parameters \(\phi\).

power

scalar; a synonym for \(\xi\), the Tweedie index parameter. Here, \(p > 2\).

lower.tail

logical; if TRUE (the default), computes the lower tail \(F(y)\); otherwise computes \(S(y) = 1 - F(y)\).

IGexact

logical; if TRUE (the default), evaluate the inverse Gaussian distribution using the 'exact' values, otherwise uses inversion.

fallback

logical; if ]FALSE,only the Gauss-Laguerre rules are tried, which is cheap; the slower piecewise adaptive integration is skipped, and ok = FALSE returned if they fail. The default is TRUE

References

Dunn, Peter K and Smyth, Gordon K (Submitted). Evaluation of the Tweedie exponential dispersion model distribution function. Submitted.

Examples

Run this code
ptweedie_tail_integrate(0.00001, power = 2.1, mu = 1, phi = 1)


Run the code above in your browser using DataLab