A realization of data from a region is generated as follows.
The frequency distributions at sites (specified by
arguments qfunc
and para
) are expressed
as \(Q_i(F)=\mu_i q_i(F)\) where \(\mu_i\) is the site-specific scale factor
(“index flood”) and \(q_i(F)\) is the at-site growth curve.
At each simulation run the at-site growth curves of each site
are randomly permuted, and are scaled by the (unpermuted)
index flood values for the sites.
Data are simulated from these frequency distributions,
with inter-site correlation specified by argument cor
and record lengths at each site specified by argument nrec
.
The regional frequency distribution specified by argument fit
is then fitted to the simulated data, as in function regfit
.
The procedure is as described in Hosking and Wallis (1997), Table 6.1,
except that the permutation of at-site growth curves is a later
modification, intended to give more realistic sets of simulated data.
For more details, including exact definitions of quantities computed
in the simulation and returned by functions regsimq
,
regquantbounds
, and regsitebounds
, see vignette RegSim
.
From each realization the sample mean values and estimates of the
quantiles of the regional growth curve, for nonexceedance probabilities
specified by argument f
, are saved.
From the simulated values, for each quantile specified by argument f
the relative root mean square error (relative RMSE) is computed as in
Hosking and Wallis (1997, eq. (6.15)).
Error bounds are also computed, as in Hosking and Wallis (1997, eq. (6.18))
but with bound probabilities specified by argument boundprob
rather than the fixed values 0.05 and 0.95 considered by Hosking and Wallis.
The error bounds are sample quantiles, across the nrep
realizations,
of the ratio of the estimated regional growth curve
to the true at-site growth curve
or of the ratio of the estimated to the true quantiles at individual sites.
For distribution fit
there should exist a function to estimate
the parameters of the distribution given a set of \(L\)-moments.
The function should have a name that is the character string
"pel"
followed by the character string fit
.
It should accept a single argument, a vector containing \(L\)-moments
\(\ell_1\), \(\ell_2\), \(t_3\), \(t_4\), etc.,
and return a vector of distribution parameters.
For distribution fit
there should also exist a quantile function,
which should have a name that is the character string
"qua"
followed by the character string fit
.
It should accept two arguments: a vector of probabilities
and a vector containing the parameters of the distribution.
The search path used to find the "pel"
and "qua"
functions
is the same as for arguments supplied to regsimq
, i.e.
the enclosing frames of the function, followed by the search path
specified by search()
.
The estimation routines and quantile functions in package lmom
have the form described here. For example, to use a
generalized extreme value distribution set fit
to be
the string "gev"
; then the fitting function pelgev
and the quantile function quagev
will be used
(unless these functions have been masked by another object
on the search path).