Skip to contents

Estimate GEV parameters from a sample.

Usage

gev_fit(x, method = c("mle", "lmom", "mom"))

Arguments

x

numeric vector of observations.

method

estimation method: "mle" (maximum likelihood, the default), "lmom" (L-moments), or "mom" (product moments).

Value

A named numeric vector with location, scale, and shape.

Examples

set.seed(1)
gev_fit(rnorm(100, 100, 10), method = "lmom")
#>   location      scale      shape 
#> 98.0764671  9.1124759  0.3178497