maq: Flood quantile estimation by model averaging

Description Usage Arguments Examples

Description

Estimate the flood quantile of a given period by averaging the predictions of severals distributions. The weights are computed using either the BIC or the AIC criterion.

Usage

1
2
maq(x, distr = c("gev", "glo", "pe3", "ln3"), rt = c(2, 5, 10, 20, 50, 100),
  bic = FALSE, method = "mle")

Arguments

x

Sample

distr

List of distributions. See vec2par.

rt

Return period in years

bic

Logical. Use the BIC criterion for weight (TRUE) or the AIC (FALSE).

method

String determining the method of estimation. Either L-moments ('lmom') or Maximum likelihood ('mle').

Examples

1
2
3
4
5
xd <- exp(rnorm(50)+2)
maq(xd, method = 'lmom')

xd <- exp(rlogis(50)+1)
maq(xd, distr = c('gev','glo'), bic = TRUE)

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