| dist_tweedie | R Documentation |
Construct a Tweedie distribution object using the compound Poisson–Gamma
parameterisation with power parameter in (1, 2). The Tweedie family
is a subclass of exponential dispersion models that naturally produces exact
zeros (via the Poisson count component) mixed with continuous positive
values (via the Gamma severity component), making it well suited to
intermittent demand data.
dist_tweedie(mean = 1, dispersion = 1, power = 1.5)
mean |
Mean parameter |
dispersion |
Dispersion parameter |
power |
Power parameter |
The density is evaluated using the series expansion of Dunn & Smyth (2005), implemented in C++ for performance.
A distributional distribution object of class dist_tweedie.
Dunn, P. K., & Smyth, G. K. (2005). Series evaluation of Tweedie exponential dispersion model densities. Statistics and Computing, 15(4), 267–280. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1007/s11222-005-4070-y")}.
d <- dist_tweedie(mean = 2, dispersion = 0.8, power = 1.5)
d |> mean()
d |> quantile(c(0.5, 0.9))
d |> density(c(0, 1.5, 3))
d |> distributional::variance()
d |> distributional::generate(10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.