dst_gpd | R Documentation |
Makes a Generalized Pareto distribution (GPD), corresponding to the limiting distribution of excesses over a threshold.
dst_gpd(scale, shape)
scale |
Scale parameter; single positive numeric. |
shape |
Shape parameter; single positive numeric.
This is also the extreme value index, so that |
A Generalised Pareto Distribution.
# Short-tailed example
short <- dst_gpd(1, -1)
range(short)
mean(short)
# Heavy-tailed example
heavy <- dst_gpd(1, 1)
range(heavy)
mean(heavy)
# Light-tailed example (a Gumbel distribution)
light <- dst_gpd(1, 0)
range(light)
mean(light)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.