Learn R Programming

lmomRFA (version 2.0)

reglmr: Regional weighted average of L-moments

Description

Regional weighted average of $L$-moments.

Usage

reglmr(xmom, weight)

Arguments

xmom
Matrix or data frame each of whose rows contains the $L$-moments and $L$-moment ratios for one site, in the order $\ell_1$, $\ell_2$, $t_3$, $t_4$, etc.
weight
Vector containing the weights to be used for each site. If omitted, equal weights will be used.

Value

  • Vector containing the regional average $L$-moments.

Examples

Run this code
data(Maxwind)
(xmom<-t(sapply(Maxwind,samlmu)))
nrec<-sapply(Maxwind,length)
reglmr(xmom,nrec)   # weighted by record length
reglmr(xmom)        # unweighted

Run the code above in your browser using DataLab