FitGev: Fit Generalized extreme value (GEV) distribution

Description Usage Arguments References Examples

Description

Fit a GEV distribution to data using either the maximum likelihood or the generalized maximum likelihood method of Martins and Stedingers (2000)

Usage

1
FitGev(x, varcov = TRUE, method = "gml", method.optim = "BFGS", ...)

Arguments

x

Vector of sample.

varcov

Logical. Should the covariance matrix be computed.

method

Method of estimation. Either 'ml' or 'gml'.

method.optim

Optimisation method used by optim

...

Parameter pass to optim

References

Martins, E.S., Stedinger, J.R., 2000. Generalized maximum-likelihood generalized extreme-value quantile estimators for hydrologic data. Water Resour. Res. 36, 737–744. https://doi.org/10.1029/1999WR900330

Examples

1
2
3
4
5
6
7
library(lmomco)
xset <- rlmomco(50, vec2par(c(100,30,.1), 'gev'))

fit <- FitGev(xset)
print(fit)
predict(fit)
plot(fit, xset)

martindurocher/floodRFA documentation built on June 5, 2019, 8:44 p.m.