poolGrp: Perform regional frequency analysis using L-moments on...

Description Usage Arguments Examples

Description

Perform regional frequency analysis using L-moments on pooling groups

Usage

1
2
poolGrp(obj, dis, rtn = c(2, 5, 10, 20, 50, 100), nk = 25, sset = NULL,
  indx = NULL, distr = NULL, rm.target = FALSE, target = NULL)

Arguments

obj

Output from rfa. Containt the index-Flood and the Lmoments of all sites

dis

If a vector of distances, the target must be included with distance zero. If a distance matrix or a distance object, the target must be specified.

rtn

A vector of return period

nk

The number of donor

indx

A vector or string to force new index-flood value

distr

Regioal distribution to use. If omited, a best distribution is selected

rm.target

Should the target be removed from the

nsim

Number of simulation used to compute Homegeneity and GOF statistics

nk.min

Minimal size of pooling groups

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
library(lmomco)
coord <- replicate(2, runif(100))
dis <- dist(coord)

para <- vec2par(c(100, 30, .1),'gev')
xdata <- lapply(1:100, function(ii) rlmomco(rpois(1,20)+20, para))
names(xdata) <- paste('site',1:100)

obj <- rfa(xdata, 'median')

rfaRegFit(obj)

# Perform the analysis of the site 13th site
regGev <- poolGrp(obj, dis = dis, target = 13, distr = 'gev')
regGev

# Could choose the distribution automatically
poolGrp(obj, dis = dis, target = 13)

# To get information on the regional growth curve
poolGrp(obj, dis = dis, target = 13, indx = 1)

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