Learn R Programming

tweedie (version 3.0.16)

tweedie_dev: Unit Deviance for a Tweedie Distribution

Description

Computes the unit deviance for Tweedie distributions.

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.

Examples

Run this code
# Unit deviance is not symmetric in general:
round( tweedie_dev(0:6, mu = 3, power = 1.1), 3)

Run the code above in your browser using DataLab