Tweedie distribution
tweedie.RdMean mean, dispersion dispersion and power 1 < power < 2: variance
dispersion * mean^power, a point mass exp(-lambda) at 0 and a
continuous density above it. It is a Poisson number of gamma losses, the
GLM family for pure premium; tweedie_from_poisson_gamma() builds it
from those. Properties: d@mean_param, d@dispersion, d@power,
d@lambda (expected number of losses) and d@severity (a
gamma_distribution).
Value
A tweedie object, which inherits from distribution.
Details
Supports the same operations as pareto, plus log_density().
Examples
y <- tweedie(500, 40, 1.6)
cdf(y, 0) - exp(-y@lambda)
#> [1] 0
log_density(y, c(100, 500))
#> [1] -7.459161 -8.171073