Learn R Programming

homtest (version 0.1-4)

Lmoments: Hosking and Wallis sample L-moments

Description

Lmoments provides the estimate of L-moments of a sample or regional L-moments of a region.

Usage

Lmoments (x)
 regionalLmoments (x,cod)
 LCV (x)
 LCA (x)
 Lkur (x)

Arguments

x
vector representing a data-sample (or data from many samples defined with 'fac' in the case of 'regionalLmoments')
cod
array that defines the data subdivision among sites

Value

  • 'Lmoments' gives the L-moments (l1, l2, lcv, lca, lkur), 'regionalLmoments' gives the regional weighted L-moments (l1R, l2R, lcvR, lcaR, lkurR), 'LCV' gives the coefficient of L-variation, 'LCA' gives the L-skewness and 'Lkur' gives the L-kurtosis of 'x'.

Details

.

References

Hosking, J.R.M. and Wallis, J.R. (1997) Regional Frequency Analysis: an approach based on L-moments, Cambridge University Press, Cambridge, UK.

See Also

HOMTESTS

Examples

Run this code
x <- rnorm(30,10,2)
Lmoments(x)

data(annualflows)
annualflows
summary(annualflows)
x <- annualflows["dato"][,]
cod <- annualflows["cod"][,]
split(x,cod)
camp <- split(x,cod)$"45"
Lmoments(camp)
sapply(split(x,cod),Lmoments)

regionalLmoments(x,cod)

Run the code above in your browser using DataLab