reglmr: Regional weighted average of L-moments

Description Usage Arguments Value Note Author(s) Examples

View source: R/lmomRFA.r

Description

Regional weighted average of L-moments.

Usage

1
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 l_1, l_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.

Note

This function is deprecated and may be removed from a future version of the package. Function regavlmom is the recommended replacement.

Author(s)

J. R. M. Hosking [email protected]

Examples

1
2
3
4
(xmom<-t(sapply(Maxwind,samlmu)))
nrec<-sapply(Maxwind,length)
reglmr(xmom,nrec)   # weighted by record length
reglmr(xmom)        # unweighted

Example output

Loading required package: lmom
                             l_1      l_2        t_3        t_4
(  2) Montgomery AL     45.35714 4.343915 0.23161248 0.24895531
( 17) Jacksonville FL   48.71429 5.494709 0.22965816 0.19048183
( 18) Key West FL       51.00000 9.286550 0.34716254 0.12454623
( 19) Tampa FL          49.40000 4.800000 0.09375000 0.15426587
( 21) Macon GA          45.03571 4.456349 0.04061922 0.08382766
( 22) Savannah GA       47.65625 5.077621 0.25860631 0.19655241
( 77) Cape Hatteras NC  57.91111 6.496970 0.28185381 0.17180088
( 80) Wilmington NC     49.88462 5.678462 0.34231915 0.15496566
(107) Brownsville TX    43.62857 4.494118 0.19371728 0.15087203
(108) Corpus Christi TX 54.47059 6.695187 0.51073283 0.31502338
(111) Port Arthur TX    53.08000 5.250000 0.20861284 0.14138905
(116) Norfolk VA        48.75000 5.023684 0.13253012 0.15220986
      l_1       l_2       t_3       t_4 
1.0000000 0.1114470 0.2528987 0.1793349 
      l_1       l_2       t_3       t_4 
1.0000000 0.1122683 0.2392646 0.1737408 

lmomRFA documentation built on Aug. 2, 2017, 9:03 a.m.