vec2lmom | R Documentation |
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 k \ge 3
order L-moments are dimensionless ratios (\tau_3
, \tau_4
, and \tau_5
), this function computes \lambda_3
, \lambda_4
, \lambda_5
from \lambda_2
from the ratios. However, typical practice is not set on the use of \lambda_2
or \tau
as measure of dispersion. Therefore, this function takes an lscale
optional logical (TRUE|FALSE
) argument—if \lambda_2
is provided and lscale=TRUE
, then \tau
is computed by the function and if \tau
is provided, then \lambda_2
is computed by the function.
vec2lmom(vec, lscale=TRUE,
trim=NULL, leftrim=NULL, rightrim=NULL, checklmom=TRUE)
vec |
A vector of L-moment values in |
lscale |
A logical switch on the type of the second value of first argument.
L-scale ( |
trim |
Level of symmetrical trimming, which should equal |
leftrim |
Level of trimming of the left-tail of the sample, which will equal |
rightrim |
Level of trimming of the right-tail of the sample, which will equal |
checklmom |
Should the |
An R list
is returned.
W.H. Asquith
lmoms
, vec2pwm
lmr <- vec2lmom(c(12,0.6,0.34,0.20,0.05),lscale=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.