tweedie_dev: Unit Deviance for a Tweedie Distribution
Description
Computes the unit deviance for Tweedie distributions.
Since version 3.2.0 it is computed without cancellation, so it has full
relative accuracy even when y is very close to mu.
Usage
tweedie_dev(y, mu, power)
tweedie.dev(y, mu, power)
Value
A numeric vector containing the unit deviance.
Arguments
y
vector of quantiles.
mu
the mean parameter \(\mu\).
power
the power parameter \(p\).
References
Jorgensen, B. (1997).
Theory of Dispersion Models.
Chapman and Hall, London.