50% off: Unlimited data and AI learning.
The Learning Leader's Guide to AI Literacy

lmomco (version 2.4.14)

vec2lmom: Convert a Vector of L-moments to a L-moment Object

Description

This function converts a vector of L-moments to a L-moment object of lmomco. The object is an R list. This function is intended to facilitate the use of L-moments (and TL-moments) that the user might have from other sources. L-moments and L-moment ratios of arbitrary length are supported.

Because in typical practice, the k3 order L-moments are dimensionless ratios (τ3, τ4, and τ5), this function computes λ3, λ4, λ5 from λ2 from the ratios. However, typical practice is not set on the use of λ2 or τ as measure of dispersion. Therefore, this function takes an lscale optional logical (TRUE|FALSE) argument---if λ2 is provided and lscale=TRUE, then τ is computed by the function and if τ is provided, then λ2 is computed by the function.

Usage

vec2lmom(vec, lscale=TRUE,
         trim=NULL, leftrim=NULL, rightrim=NULL, checklmom=TRUE)

Value

An R

list is returned.

Arguments

vec

A vector of L-moment values in λ1, λ2 or τ, τ3, τ4, and τ5 order.

lscale

A logical switch on the type of the second value of first argument. L-scale (λ2) or LCV (τ). Default is TRUE, the second value in the first argument is λ2.

trim

Level of symmetrical trimming, which should equal NULL if asymmetrical trimming is used.

leftrim

Level of trimming of the left-tail of the sample, which will equal NULL even if trim = 1 if the trimming is symmetrical.

rightrim

Level of trimming of the right-tail of the sample, which will equal NULL even if trim = 1 if the trimming is symmetrical.

checklmom

Should the lmom be checked for validity using the are.lmom.valid function. Normally this should be left as the default unless TL-moments are being constructed in lieu of using vec2TLmom.

Author

W.H. Asquith

See Also

lmoms, vec2pwm

Examples

Run this code
lmr <- vec2lmom(c(12,0.6,0.34,0.20,0.05),lscale=FALSE)

Run the code above in your browser using DataLab