Morph an L-moment Object

Share:

Description

Morph or change one L-moment object type into another. The first L-moment object created for lmomco used an R list with named L-moment values (lmom.ub) such as L1 or TAU3. This object was bounded for L-moment orders less than or equal to five. However, subsequent lmomco development in early 2006 that was related to the trimmed L-moments suggested that an alternative L-moment object structure be used that utilized two vectors for the L-moments and the L-moment ratios (lmorph). This second object type is not bounded by L-moment order. In turn it became important to seemlessly morph from one object structure to the other and back again. The canonical structure of the first L-moment object type is documented under lmom.ub; whereas, the canonical structure for the second L-moment object type is documented under lmoms (actually through TLmoms). Because the first L-moment object is bounded by five, L-moment order larger than this will be ignored in the morphing process.

Usage

1
lmorph(lmom)

Arguments

lmom

An L-moment object of type like lmom.ub or lmoms.

Value

A two different R lists (L-moment objects), which are the opposite of the argument type—see the documentation for lmom.ub and lmoms.

Note

If any of the trimming characteristics of the second type of L-moment object (trim, leftrim, or rightrim) have a greater than zero value, then conversion to the L-moment object with named values will not be performed. A message will be provided that the conversion was not performed. In April 2014, it was decided that all lmomCCC() functions, such as lmomgev or lmomnor, would be standardized to the less limited and easier to maintain vector output style of lmoms.

Author(s)

W.H. Asquith

See Also

lmom.ub, lmoms, TLmoms

Examples

1
2
3
lmr <- lmom.ub(c(123,34,4,654,37,78))
lmorph(lmr)
lmorph(lmorph(lmr))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.