Skip to contents

Moments of a GEV distribution

Usage

gev_moments(location, scale, shape)

Arguments

location

location parameter \(\xi\).

scale

scale parameter \(\alpha\) (must be positive).

shape

shape parameter \(\kappa\).

Value

A named numeric vector: mean, median, sd, skewness, kurtosis, minimum, maximum. Entries are NaN where the moment is undefined for the given shape.

Examples

gev_moments(location = 100, scale = 10, shape = 0)
#>     mean   median     mode       sd skewness kurtosis  minimum  maximum 
#> 105.7722 103.6651 100.0000  12.8255   1.1396   5.4000     -Inf      Inf