Learn R Programming

lmomRFA (version 3.8)

regavlmom: Regional weighted average of L-moments

Description

Computes a regional weighted average of \(L\)-moments.

Usage

regavlmom(regdata, weight)

Value

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

Arguments

regdata

Object of class regdata, containing summary statistics of the data for the sites in a region.

weight

Vector containing the weights to be used for each site. If omitted, weights will be the sample size at each site, taken from the second column of regdata. If a single value, equal weights will be used.

Author

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

Examples

Run this code
reglm <- regsamlmu(Maxwind)
regavlmom(reglm)            # Weight proportional to record length
regavlmom(reglm, weight=1)  # Equal weights

Run the code above in your browser using DataLab