Learn R Programming

lmomco (version 2.2.5)

cdf2lmoms: Compute L-moments from Cumulative Distribution Function

Description

Compute the L-moments from a cumulative distribution function. For $r \ge 1$, the L-moments can be computed by sequential calling of cdf2lmom. Consult the documentation of that function for mathematical definitions.

Usage

cdf2lmoms(para, nmom=6, fdepth=0, silent=TRUE, lambegr=1, ...)

Arguments

para
The parameters from lmom2par or similar.
nmom
The number of moments to compute. Default is 6.
fdepth
The depth of the nonexceedance/exceedance probabilities to determine the lower and upper integration limits through a call to the par2qua function. The default of 0 implies the quantile for $F=0$ and quantile for $F=1$ as the respective lower and upper limits.
silent
A logical to be passed into cdf2lmom and then onto the try functions encompassing the integrate function calls.
lambegr
The $r$th order to begin the sequence for L-moment computation. Can be used as a means to bypass a mean computation if the user has an alternative method for the mean or other central tendency characterization in which case lambegr = 2.
...
Additional arguments to pass to cdf2lmom.

Value

An R list is returned.

See Also

cdf2lmom, lmoms

Examples

Run this code
cdf2lmoms(vec2par(c(10,40), type="ray"))
## Not run: 
# # relatively slow computation
# vec2par(c(.9,.4), type="emu"); cdf2lmoms(para, nmom=4)
# vec2par(c(.9,.4), type="emu"); cdf2lmoms(para, nmom=4, fdepth=0)## End(Not run)

Run the code above in your browser using DataLab