fit.gev {mev}R Documentation

Maximum likelihood estimation for the generalized extreme value distribution

Description

This function returns an object of class mev_gev, with default methods for printing and quantile-quantile plots. The default starting values are the solution of the probability weighted moments.

Usage

fit.gev(
  xdat,
  start = NULL,
  method = c("nlminb", "BFGS"),
  show = FALSE,
  fpar = NULL,
  warnSE = FALSE
)

Arguments

xdat

a numeric vector of data to be fitted.

start

named list of starting values

method

string indicating the outer optimization routine for the augmented Lagrangian. One of nlminb or BFGS.

show

logical; if TRUE (the default), print details of the fit.

fpar

a named list with optional fixed components loc, scale and shape

warnSE

logical; if TRUE, a warning is printed if the standard errors cannot be returned from the observed information matrix when the shape is less than -0.5.

Value

a list containing the following components:

Examples

xdat <- mev::rgev(n = 100)
fit.gev(xdat, show = TRUE)
# Example with fixed parameter
fit.gev(xdat, show = TRUE, fpar = list(shape = 0))

[Package mev version 1.16 Index]