Skip to contents

The Tweedie law with power power outside (0, 1] for invert_chf(), in its reproductive form: mean mean, variance dispersion * mean^power (Jorgensen's exponential dispersion model). power = 0 is the normal, power < 0 the extreme stable laws on the whole line, 1 < power < 2 the compound Poisson-gamma (tweedie()) with its mass at 0, power = 2 the gamma, power = 3 the inverse Gaussian and power > 2 the positive extreme stable laws.

Usage

tweedie_power_distribution(power, mean, dispersion = NULL, cv = NULL)

Arguments

power

At most 0, or above 1 and finite.

mean

Positive.

dispersion

Positive; leave it out when cv is given.

cv

The coefficient of variation instead of dispersion: dispersion cv^2 * mean^(2 - power).

Value

A tweedie_power_distribution with properties power, mean, dispersion, variance and skewness.

Examples

d <- invert_chf(tweedie_power_distribution(2.5, 3, 0.4), log2 = 12)
mean(d)
#> [1] 3
tweedie_power_distribution(2.5, 10, cv = 0.3)@dispersion
#> [1] 0.0284605