Learn R Programming

lmomRFA (version 3.8)

reglmr: Regional weighted average of L-moments

Description

Regional weighted average of \(L\)-moments.

Usage

reglmr(xmom, weight)

Value

Vector containing the regional average \(L\)-moments.

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.

Author

J. R. M. Hosking jrmhosking@gmail.com

Examples

Run this code
(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