Learn R Programming

lmomco (version 0.88)

lmoms: The Sample L-moments and L-moment Ratios

Description

Compute the sample L-moments for a vector.

Usage

lmoms(x,nmom)

Arguments

x
A vector of data values.
nmom
The number of moments to compute. Default is 5.

Value

  • An R list is returned.
  • lambdasVector of the L-moments. First element is $\hat{\lambda}^{(0,0)}_1$, second element is $\hat{\lambda}^{(0,0)}_2$, and so on.
  • ratiosVector of the L-moment ratios. Second element is $\hat{\tau}^{(0,0)}$, third element is $\hat{\tau}^{(0,0)}_3$ and so on.
  • trimLevel of symmetrical trimming used in the computation, which will equal NULL if asymmetrical trimming was used.
  • leftrimLevel of left-tail trimming used in the computation.
  • rightrimLevel of right-tail trimming used in the computation.
  • sourceAn attribute identifying the computational source of the L-moments: lmoms.

References

Elamir, E.A.H., and Seheult, A.H., 2003, Trimmed L-moments: Computational statistics and data analysis, vol. 43, pp. 299-314.

Hosking, J.R.M., 1990, L-moments---Analysis and estimation of distributions using linear combinations of order statistics: Journal of the Royal Statistical Society, Series B, vol. 52, p. 105--124.

See Also

lmom.ub, TLmoms, and lmorph

Examples

Run this code
X1 <- rnorm(30)
L5 <- lmoms(X1)
L4 <- lmoms(X1,nmom=4)

Run the code above in your browser using DataLab