Learn R Programming

⚠️There's a newer version (2.5.3) of this package.Take me there.

lmomco (version 1.4.2)

L-moments, Censored L-moments, Trimmed L-moments, L-comoments, and Many Distributions

Description

The package implements the statistical theory of L-moments in R including L-moment estimation, probability-weighted moment estimation, parameter estimation for numerous familiar and not-so-familiar distributions, and L-moment estimation for the same distributions from the parameters. L-moments are derived from the expectations of order statistics and are linear with respect to the probability-weighted moments; choice of either can be made by mathematical convenience. L-moments are directly analogous to the well-known product moments; however, L-moments have many advantages including unbiasedness, robustness, and consistency with respect to the product moments. The method of L-moments can out perform the method of maximum likelihood. The lmomco package historically is oriented around canonical FORTRAN algorithms of J.R.M. Hosking, and the nomenclature for many of the functions parallels that of the Hosking library, which later became available in the lmom package. However, vast arrays of various extensions and curiosities are added by the author to aid and expand the breadth of L-moment application. Such extensions include venerable statistics as Sen weighted mean, Gini mean difference, plotting positions, and conditional probability adjustment. The plotting of L-moment ratio diagrams is directly supported in this package. Computations of L-moments for right-tail and left-tail censoring by known or unknown censoring threshold and also by indicator variable also are available. E.A.H. Elamir and A.H. Seheult have developed the trimmed L-moments, which are implemented in this package, and numerical integration of quantile functions is used to dynamically compute trajectories of select TL-moment ratios for the construction of TL-moment ratio diagrams. Robert Serfling and Peng Xiao have extended L-moments into multivariate space; the so-called sample L-comoments are implemented here and might have considerable application in copula theory because they measure asymmetric correlation and higher co-moments. The supported distributions with moment type shown as "L" (L-moments) or "TL" (trimmed L-moments) and additional support for right-tail censoring ([RC]) include: Cauchy (TL), Exponential (L), Gamma (L), Generalized Extreme Value (L), Generalized Lambda (L & TL), Generalized Logistic (L), Generalized Normal (L), Generalized Pareto (L[RC] & TL), Gumbel (L), Kappa (L), Kumaraswamy (L), Normal (L), 3-parameter log-Normal (L), Pearson Type III (L), Rayleigh (L), Reverse Gumbel (L[RC]), Rice/Rician (L), Truncated Exponential (L), Wakeby (L), and Weibull (L).

Copy Link

Version

Install

install.packages('lmomco')

Monthly Downloads

3,652

Version

1.4.2

License

GPL

Maintainer

William Asquith

Last Published

July 23rd, 2011

Functions in lmomco (1.4.2)

canyonprecip

Annual Maximum Precipitation Data for Canyon, Texas
are.pargum.valid

Are the Distribution Parameters Consistent with the Gumbel Distribution
Lcomoment.coefficients

L-comoment Coefficient Matrix
are.par.valid

Are the Distribution Parameters Consistent with the Distribution
USGSsta05405000peaks

Annual Peak Streamflow Data for U.S.~Geological Survey Streamflow-Gaging Station 05405000
Apwm2BpwmRC

Conversion between A- and B-Type Probability-Weighted Moments for Right-Tail Censoring of An Appropriate Distribution
is.gum

Is a Distribution Parameter Object Typed as Gumbel
are.parrevgum.valid

Are the Distribution Parameters Consistent with the Reverse Gumbel Distribution
is.gam

Is a Distribution Parameter Object Typed as Gamma
herefordprecip

Annual Maximum Precipitation Data for Hereford, Texas
cdfray

Cumulative Distribution Function of the Rayleigh Distribution
are.pargld.valid

Are the Distribution Parameters Consistent with the Generalized Lambda Distribution
cdfexp

Cumulative Distribution Function of the Exponential Distribution
are.partexp.valid

Are the Distribution Parameters Consistent with the Truncated Exponential Distribution
USGSsta06766000dvs

Daily Mean Streamflow Data for U.S.~Geological Survey Streamflow-Gaging Station 06766000
are.parln3.valid

Are the Distribution Parameters Consistent with the 3-Parameter Log-Normal Distribution
are.lmom.valid

Are the L-moments valid
USGSsta08167000peaks

Annual Peak Streamflow Data for U.S.~Geological Survey Streamflow-Gaging Station 08167000
dist.list

List of Distribution Names
cdfnor

Cumulative Distribution Function of the Normal Distribution
check.pdf

Check and Potentially Graph Probability Density Functions
Lcomoment.correlation

L-correlation Matrix (L-correlation through Sample L-comoments)
lmomgpa

L-moments of the Generalized Pareto Distribution
lmom.test.gpa

Test L-moment and Parameter Algorithms of the Generalized Pareto Distribution
lmom.references

Useful References Related to L-moments
cdfpe3

Cumulative Distribution Function of the Pearson Type III Distribution
are.parwei.valid

Are the Distribution Parameters Consistent with the Weibull Distribution
cdfrevgum

Cumulative Distribution Function of the Reverse Gumbel Distribution
are.pargpa.valid

Are the Distribution Parameters Consistent with the Generalized Pareto Distribution
T2prob

Convert a Vector of T-year Return Periods to Annual Nonexceedance Probabilities
Bpwm2ApwmRC

Conversion between B- and A-Type Probability-Weighted Moments for Right-Tail Censoring of An Appropriate Distribution
USGSsta02366500peaks

Annual Peak Streamflow Data for U.S.~Geological Survey Streamflow-Gaging Station 02366500
are.parglo.valid

Are the Distribution Parameters Consistent with the Generalized Logistic Distribution
are.parpe3.valid

Are the Distribution Parameters Consistent with the Pearson Type III Distribution
cdfgum

Cumulative Distribution Function of the Gumbel Distribution
hmomco

Hazard Functions of the Distributions
lmom.test.gev

Test L-moment and Parameter Algorithms of the Generalized Extreme Value Distribution
lmom.test.all

Test All lmom.CCC.test Functions
is.nor

Is a Distribution Parameter Object Typed as Normal
dlmomco

Probability Density Function of the Distributions
lmom.test.exp

Test L-moment and Parameter Algorithms of the Exponential Distribution
is.revgum

Is a Distribution Parameter Object Typed as Reverse Gumbel
IRSrefunds.by.state

U.S.~Internal Revenue Service Refunds by State for Fiscal Year 2006
are.parwak.valid

Are the Distribution Parameters Consistent with the Wakeby Distribution
is.rice

Is a Distribution Parameter Object Typed as Rice
cdfcau

Cumulative Distribution Function of the Cauchy Distribution
gen.freq.curves

Plot Randomly Generated Frequency Curves from a Parent Distribution
are.pargam.valid

Are the Distribution Parameters Consistent with the Gamma Distribution
lmom.test.wak

Test L-moment and Parameter Algorithms of the Wakeby Distribution
is.ray

Is a Distribution Parameter Object Typed as Rayleigh
are.parray.valid

Are the Distribution Parameters Consistent with the Rayleigh Distribution
USGSsta14321000peaks

Annual Peak Streamflow Data for U.S.~Geological Survey Streamflow-Gaging Station 14321000
cdfkap

Cumulative Distribution Function of the Kappa Distribution
are.parrice.valid

Are the Distribution Parameters Consistent with the Rice Distribution
lcomoms2

The Sample L-comoments for Two Variables
are.parnor.valid

Are the Distribution Parameters Consistent with the Normal Distribution
clearforkporosity

Porosity Data
is.kur

Is a Distribution Parameter Object Typed as Kumaraswamy
cdftexp

Cumulative Distribution Function of the Truncated Exponential Distribution
DrillBitLifetime

Lifetime of Drill Bits
Lcomoment.matrix

Compute Sample L-comoment Matrix
is.ln3

Is a Distribution Parameter Object Typed as 3-Parameter Log-Normal
freq.curve.all

Compute Frequency Curve for All Distributions
lmom.test.pe3

Test L-moment and Parameter Algorithms of the Pearson Type III Distribution
are.parkap.valid

Are the Distribution Parameters Consistent with the Kappa Distribution
USGSsta01515000peaks

Annual Peak Streamflow Data for U.S.~Geological Survey Streamflow-Gaging Station 01515000
USGSsta08151500peaks

Annual Peak Streamflow Data for U.S.~Geological Survey Streamflow-Gaging Station 08151500
lmom.diff

Difference Between L-moments of the Distribution and the L-moments of the Data
Lcomoment.Lk12

Compute a Single Sample L-comoment
fliplmoms

Flip L-moments by Flip Attribute in L-moment Vector
cdfgam

Cumulative Distribution Function of the Gamma Distribution
is.wak

Is a Distribution Parameter Object Typed as Wakeby
are.pargev.valid

Are the Distribution Parameters Consistent with the Generalized Extreme Value Distribution
amarilloprecip

Annual Maximum Precipitation Data for Amarillo, Texas
quagam

Quantile Function of the Gamma Distribution
are.pargno.valid

Are the Distribution Parameters Consistent with the Generalized Normal Distribution
TLmom

A Sample Trimmed L-moment
lmomglo

L-moments of the Generalized Logistic Distribution
is.kap

Is a Distribution Parameter Object Typed as Kappa
tlmrwei

Compute Select TL-moment ratios of the Weibull Distribution
cdfln3

Cumulative Distribution Function of the 3-Parameter Log-Normal Distribution
cdfglo

Cumulative Distribution Function of the Generalized Logistic Distribution
lmomkur

L-moments of the Kumaraswamy Distribution
check.fs

Check Vector of Nonexceedance Probabilities
lmom.test.revgum

Test L-moment and Parameter Algorithms of the Reverse Gumbel Distribution
cdfrice

Cumulative Distribution Function of the Rice Distribution
lmom.test.wei

Test L-moment and Parameter Algorithms of the Weibull Distribution
claudeprecip

Annual Maximum Precipitation Data for Claude, Texas
lmom.test.glo

Test L-moment and Parameter Algorithms of the Generalized Logistic Distribution
is.pe3

Is a Distribution Parameter Object Typed as Pearson Type III
theoTLmoms

The Theoretical Trimmed L-moments and TL-moment Ratios using Integration of the Quantile Function
TLmoms

The Sample Trimmed L-moments and L-moment Ratios
gini.mean.diff

Gini Mean Difference Statistic
is.gno

Is a Distribution Parameter Object Typed as Generalized Normal
is.cau

Is a Distribution Parameter Object Typed as Cauchy
par2vec

Convert a Parameter Object to a Vector of Parameters
lmomwak

L-moments of the Wakeby Distribution
LaguerreHalf

Laguerre Polynomial (Half)
lmomsRCmark

Sample L-moments Moments for Right-Tail Censoring by a Marking Variable
are.parkur.valid

Are the Distribution Parameters Consistent with the Kumaraswamy Distribution
cdfwak

Cumulative Distribution Function of the Wakeby Distribution
lmom.ub

Unbiased Sample L-moments by Direct Sample Estimators
is.texp

Is a Distribution Parameter Object Typed as Truncated Exponential
harmonic.mean

The Harmonic Mean with Zero-Value Correction
lmom.test.gam

Test L-moment and Parameter Algorithms of the Gamma Distribution
lmomTLgld

Trimmed L-moments (t=1) of the Generalized Lambda Distribution
Lcomoment.Wk

Weighting Coefficient for Sample L-comoment
USGSsta09442000peaks

Annual Peak Streamflow Data for U.S.~Geological Survey Streamflow-Gaging Station 09442000
lmomgno

L-moments of the Generalized Normal Distribution
lmom.test.gno

Test L-moment and Parameter Algorithms of the Generalized Normal Distribution
lmomRCmark

Sample L-moment for Right-Tail Censoring by a Marking Variable
lmomgev

L-moments of the Generalized Extreme Value Distribution
pargpa

Estimate the Parameters of the Generalized Pareto Distribution
lmom.test.kap

Test L-moment and Parameter Algorithms of the Kappa Distribution
lmomgpaRC

B-type L-moments of the Generalized Pareto Distribution with Right-Tail Censoring
parkur

Estimate the Parameters of the Kumaraswamy Distribution
pargam

Estimate the Parameters of the Gamma Distribution
lmom2vec

Convert an L-moment object to a Vector of L-moments
is.gpa

Is a Distribution Parameter Object Typed as Generalized Pareto
parcau

Estimate the Parameters of the Cauchy Distribution
lmomnor

L-moments of the Normal Distribution
parnor

Estimate the Parameters of the Normal Distribution
lmomTLgpa

Trimmed L-moments of the Generalized Pareto Distribution
parTLgld

Estimate the Parameters of the Generalized Lambda Distribution using Trimmed L-moments (t=1)
cdfgld

Cumulative Distribution Function of the Generalized Lambda Distribution
lmomcau

Trimmed L-moments of the Cauchy Distribution
lmomgum

L-moments of the Gumbel Distribution
pwm2lmom

Probability-Weighted Moments to L-moments
par2qua

Quantile Function of the Distributions
par2lmom

Convert the Parameters of a Distribution to the L-moments
lmomray

L-moments of the Rayleigh Distribution
pargno

Estimate the Parameters of the Generalized Normal Distribution
pargev

Estimate the Parameters of the Generalized Extreme Value Distribution
pwmRC

Sample Probability-Weighted Moments for Right-Tail Censoring
lmoms

The Sample L-moments and L-moment Ratios
genci

Generate Confidence Intervals for Quantiles of a Parent Distribution
lmomkap

L-moments of the Kappa Distribution
parln3

Estimate the Parameters of the 3-Parameter Log-Normal Distribution
pwm.gev

Generalized Extreme Value Plotting-Position Probability-Weighted Moments
cdfgev

Cumulative Distribution Function of the Generalized Extreme Value Distribution
pdfwei

Probability Density Function of the Weibull Distribution
lmomrevgum

L-moments of the Reverse Gumbel Distribution
parwak

Estimate the Parameters of the Wakeby Distribution
pargpaRC

Estimate the Parameters of the Generalized Pareto Distribution with Right-Tail Censoring
par2cdf2

Equivalent Cumulative Distribution Function of Two Distributions
is.exp

Is a Distribution Parameter Object Typed as Exponential
parray

Estimate the Parameters of the Rayleigh Distribution
pdfgld

Probability Density Function of the Generalized Lambda Distribution
parwei

Estimate the Parameters of the Weibull Distribution
is.gld

Is a Distribution Parameter Object Typed as Generalized Lambda
nonexceeds

Common Nonexceedance Probabilities
pdfrice

Probability Density Function of the Rice Distribution
pdfpe3

Probability Density Function of the Pearson Type III Distribution
quaray

Quantile Function of the Rayleigh Distribution
lmom.test.ray

Test L-moment and Parameter Algorithms of the Rayleigh Distribution
lmomtexp

L-moments of the Truncated Exponential Distribution
pdfgpa

Probability Density Function of the Generalized Pareto Distribution
is.wei

Is a Distribution Parameter Object Typed as Weibull
pdfrevgum

Probability Density Function of the Reverse Gumbel Distribution
parrevgum

Estimate the Parameters of the Reverse Gumbel Distribution
pp

Plotting-Position Formula
pdfglo

Probability Density Function of the Generalized Logistic Distribution
par2pdf

Probability Density Function of the Distributions
quakur

Quantile Function of the Kumaraswamy Distribution
pdfkap

Probability Density Function of the Kappa Distribution
Introduction

Introduction to R library lmoments
is.glo

Is a Distribution Parameter Object Typed as Generalized Logistic
lmomexp

L-moments of the Exponential Distribution
is.gev

Is a Distribution Parameter Object Typed as Generalized Extreme Value
pdfgam

Probability Density Function of the Gamma Distribution
pwm.pp

Plotting-Position Sample Probability-Weighted Moments
lmrdia

L-moment Ratio Diagram Components
lmrdiscord

Compute Discordance on L-CV, L-skew, and L-kurtosis
par2qua2

Equivalent Quantile Function of Two Distributions
pdfgum

Probability Density Function of the Gumbel Distribution
plotlmrdia

Plot L-moment Ratio Diagram
tlmrgpa

Compute Select TL-moment ratios of the Generalized Pareto
lmom.test.gum

Test L-moment and Parameter Algorithms of the Gumbel Distribution
pwm.ub

Unbiased Sample Probability-Weighted Moments
cdfwei

Cumulative Distribution Function of the Weibull Distribution
qua.ostat

Compute the Quantiles of the Distribution of an Order Statistic
parexp

Estimate the Parameters of the Exponential Distribution
expect.max.ostat

Compute the Expection of a Maximum Order Statistic (or others)
pdftexp

Probability Density Function of the Truncated Exponential Distribution
qualn3

Quantile Function of the 3-Parameter Log-Normal Distribution
pdfcau

Probability Density Function of the Cauchy Distribution
lmom.test.nor

Test L-moment and Parameter Algorithms of the Normal Distribution
tlmrgno

Compute Select TL-moment ratios of the Generalized Normal Distribution
lmompe3

L-moments of the Pearson Type III Distribution
quacau

Quantile Function of the Cauchy Distribution
lmomrice

L-moments of the Rice Distribution
partexp

Estimate the Parameters of the Truncated Exponential Distribution
USGSsta08190000peaks

Annual Peak Streamflow Data for U.S.~Geological Survey Streamflow-Gaging Station 08190000
parTLgpa

Estimate the Parameters of the Generalized Pareto Distribution using Trimmed L-moments
lmom.test.ln3

Test L-moment and Parameter Algorithms of the 3-Parameter Log-Normal Distribution
pwmLC

Sample Probability-Weighted Moments for Left-Tail Censoring
pdfgev

Probability Density Function of the Generalized Extreme Value Distribution
pdfln3

Probability Density Function of the 3-Parameter Log-Normal Distribution
pmoms

The Sample Product Moments: Mean, Standard Deviation, Skew, and Excess Kurtosis
lmomwei

L-moments of the Weibull Distribution
cdfgno

Cumulative Distribution Function of the Generalized Normal Distribution
cdfgpa

Cumulative Distribution Function of the Generalized Pareto Distribution
pwm2vec

Convert Probability-Weighted Moment object to a Vector of Probability-Weighted Moments
cdfkur

Cumulative Distribution Function of the Kumaraswamy Distribution
are.parexp.valid

Are the Distribution Parameters Consistent with the Exponential Distribution
quagld

Quantile Function of the Generalized Lambda Distribution
tlmrnor

Compute Select TL-moment ratios of the Normal Distribution
prettydist

A Pretty List of Distribution Names
parkap

Estimate the Parameters of the Kappa Distribution
pdfray

Probability Density Function of the Rayleigh Distribution
pwm

Unbiased Sample Probability-Weighted Moments
quaexp

Quantile Function of the Exponential Distribution
theoLmoms.max.ostat

Compute the Theoretical L-moments of a Distribution Distribution based on System of Maximum Order Statistic Expectations
tulia6Eprecip

Annual Maximum Precipitation Data for Tulia 6E, Texas
qlmomco

Quantile Function of the Distributions
parglo

Estimate the Parameters of the Generalized Logistic Distribution
quagno

Quantile Function of the Generalized Normal Distribution
quarice

Quantile Function of the Rice Distribution
quawak

Quantile Function of the Wakeby Distribution
tlmrln3

Compute Select TL-moment ratios of the 3-Parameter Log-Normal Distribution
pdfexp

Probability Density Function of the Exponential Distribution
quagum

Quantile Function of the Gumbel Distribution
qua2ci

Estimate Confidence Interval for a Single Quantile of a Parent Distribution
pdfwak

Probability Density Function of the Wakeby Distribution
pdfkur

Probability Density Function of the Kumaraswamy Distribution
quawei

Quantile Function of the Weibull Distribution
tlmrcau

Compute Select TL-moment ratios of the Cauchy Distribution
pargld

Estimate the Parameters of the Generalized Lambda Distribution
tlmrray

Compute Select TL-moment ratios of the Rayleigh Distribution
pargum

Estimate the Parameters of the Gumbel Distribution
par2cdf

Cumulative Distribution Function of the Distributions
quagev

Quantile Function of the Generalized Extreme Value Distribution
rlmomco

Random Deviates of a Distribution
quarevgum

Quantile Function of the Reverse Gumbel Distribution
sen.mean

Sen's Weighted Mean Statistic
quanor

Quantile Function of the Normal Distribution
quagpa

Quantile Function of the Generalized Pareto Distribution
parpe3

Estimate the Parameters of the Pearson Type III Distribution
pdfnor

Probability Density Function of the Normal Distribution
quatexp

Quantile Function of the Truncated Exponential Distribution
prob2T

Convert a Vector of Annual Nonexceedance Probabilities to T-year Return Periods
quakap

Quantile Function of the Kappa Distribution
quaglo

Quantile Function of the Generalized Logistic Distribution
parrice

Estimate the Parameters of the Rice Distribution
tlmrpe3

Compute Select TL-moment ratios of the Pearson Type III
tlmrglo

Compute Select TL-moment ratios of the Generalized Logistic Distribution
lmomgam

L-moments of the Gamma Distribution
theoLmoms

The Theoretical L-moments and L-moment Ratios using Integration of the Quantile Function
lmomgld

L-moments of the Generalized Lambda Distribution
vegaprecip

Annual Maximum Precipitation Data for Vega, Texas
plmomco

Cumulative Distribution Function of the Distributions
pdfgno

Probability Density Function of the Generalized Normal Distribution
tlmrexp

Compute Select TL-moment ratios of the Exponential Distribution
vec2par

Convert a Vector of Parameters to a Parameter Object of a Distribution
quape3

Quantile Function of the Pearson Type III Distribution
tlmrgum

Compute Select TL-moment ratios of the Gumbel Distribution
vec2TLmom

Convert a Vector of TL-moments to a TL-moment Object
theopwms

The Theoretical Probability-Weighted Moments using Integration of the Quantile Function
tuliaprecip

Annual Maximum Precipitation Data for Tulia, Texas
z.par2qua

Quantile Function of the Blipped Distributions
z.par2cdf

Cumulative Distribution Function of Blipped Distributions
vec2pwm

Convert a Vector of Probability-Weighted Moments to a Probability-Weighted Moments Object
vec2lmom

Convert a Vector of L-moments to a L-moment Object
are.parcau.valid

Are the Distribution Parameters Consistent with the Cauchy Distribution
lmom2par

Convert L-moments to the the Parameters of a Distribution
lmom2pwm

L-moments to Probability-Weighted Moments
lmomln3

L-moments of the 3-Parameter Log-Normal Distribution
lmorph

Morph an L-moment Object
tlmrgev

Compute Select TL-moment ratios of the Generalized Extreme Value Distribution