dst_gev | R Documentation |
Makes a Generalised Extreme Value (GEV) distribution, which is the limiting distribution of the maximum.
dst_gev(location, scale, shape)
location |
Location parameter; single numeric. |
scale |
Scale parameter; single positive numeric. |
shape |
Shape parameter; single numeric.
This is also the extreme value index,
so that |
A GEV distribution.
# Short-tailed example
short <- dst_gev(0, 1, -1)
range(short)
mean(short)
# Heavy-tailed example
heavy <- dst_gev(0, 1, 1)
range(heavy)
mean(heavy)
# Light-tailed example (a Gumbel distribution)
light <- dst_gev(0, 1, 0)
range(light)
mean(light)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.