Makes a Generalized Pareto distribution (GPD), corresponding to the limiting distribution of excesses over a threshold.
Examples
# Short-tailed example
short <- dst_gpd(1, -1)
range(short)
#> [1] 0 1
mean(short)
#> [1] 0.5
# Heavy-tailed example
heavy <- dst_gpd(1, 1)
range(heavy)
#> [1] 0 Inf
mean(heavy)
#> [1] Inf
# Light-tailed example (a Gumbel distribution)
light <- dst_gpd(1, 0)
range(light)
#> [1] 0 Inf
mean(light)
#> [1] 1