Learn R Programming

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

lmomco (version 1.6.1)

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 or co-movements of variables. The package supports the following distributions with moment type shown as "L" (L-moments) or "TL" (trimmed L-moments) and additional support for right-tail censoring ([RC]) include: Asymmetric Exponential Power (L), 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), Laplace (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,117

Version

1.6.1

License

GPL

Maintainer

William Asquith

Last Published

May 11th, 2012

Functions in lmomco (1.6.1)

Lcomoment.Lk12

Compute a Single Sample L-comoment
are.lmom.valid

Are the L-moments valid
cdfaep4

Cumulative Distribution Function of the 4-p Asymmetric Exponential Power Distribution
Lcomoment.matrix

Compute Sample L-comoment Matrix
is.gno

Is a Distribution Parameter Object Typed as Generalized Normal
Apwm2BpwmRC

Conversion between A- and B-Type Probability-Weighted Moments for Right-Tail Censoring of An Appropriate Distribution
are.parwak.valid

Are the Distribution Parameters Consistent with the Wakeby Distribution
cdflap

Cumulative Distribution Function of the Laplace Distribution
cdfln3

Cumulative Distribution Function of the 3-Parameter Log-Normal Distribution
are.parcau.valid

Are the Distribution Parameters Consistent with the Cauchy Distribution
cdfray

Cumulative Distribution Function of the Rayleigh Distribution
cdfgld

Cumulative Distribution Function of the Generalized Lambda Distribution
amarilloprecip

Annual Maximum Precipitation Data for Amarillo, Texas
Lcomoment.coefficients

L-comoment Coefficient Matrix
are.parexp.valid

Are the Distribution Parameters Consistent with the Exponential Distribution
is.kur

Is a Distribution Parameter Object Typed as Kumaraswamy
are.parwei.valid

Are the Distribution Parameters Consistent with the Weibull Distribution
genci

Generate Confidence Intervals for Quantiles of a Parent Distribution
cdfgpa

Cumulative Distribution Function of the Generalized Pareto Distribution
Lcomoment.Wk

Weighting Coefficient for Sample L-comoment
Lcomoment.correlation

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

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

A Sample Trimmed L-moment
are.pargld.valid

Are the Distribution Parameters Consistent with the Generalized Lambda Distribution
fliplmoms

Flip L-moments by Flip Attribute in L-moment Vector
are.parnor.valid

Are the Distribution Parameters Consistent with the Normal Distribution
cdfrice

Cumulative Distribution Function of the Rice Distribution
cdfpe3

Cumulative Distribution Function of the Pearson Type III Distribution
is.ln3

Is a Distribution Parameter Object Typed as 3-Parameter Log-Normal
are.partexp.valid

Are the Distribution Parameters Consistent with the Truncated Exponential Distribution
DrillBitLifetime

Lifetime of Drill Bits
are.parrice.valid

Are the Distribution Parameters Consistent with the Rice Distribution
T2prob

Convert a Vector of T-year Return Periods to Annual Nonexceedance Probabilities
is.wei

Is a Distribution Parameter Object Typed as Weibull
USGSsta08167000peaks

Annual Peak Streamflow Data for U.S. Geological Survey Streamflow-Gaging Station 08167000
USGSsta09442000peaks

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

Annual Maximum Precipitation Data for Hereford, Texas
lmomray

L-moments of the Rayleigh Distribution
are.parrevgum.valid

Are the Distribution Parameters Consistent with the Reverse Gumbel Distribution
lmom.references

Useful References Related to L-moments
TLmoms

The Sample Trimmed L-moments and L-moment Ratios
are.pargam.valid

Are the Distribution Parameters Consistent with the Gamma Distribution
is.gam

Is a Distribution Parameter Object Typed as Gamma
is.texp

Is a Distribution Parameter Object Typed as Truncated Exponential
canyonprecip

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

Are the Distribution Parameters Consistent with the Generalized Normal Distribution
cdftexp

Cumulative Distribution Function of the Truncated Exponential Distribution
pdfray

Probability Density Function of the Rayleigh Distribution
lmom2vec

Convert an L-moment object to a Vector of L-moments
lmom2par

Convert L-moments to the the Parameters of a Distribution
lmom.test.gum

Test L-moment and Parameter Algorithms of the Gumbel Distribution
are.parglo.valid

Are the Distribution Parameters Consistent with the Generalized Logistic Distribution
is.gum

Is a Distribution Parameter Object Typed as Gumbel
USGSsta01515000peaks

Annual Peak Streamflow Data for U.S. Geological Survey Streamflow-Gaging Station 01515000
gini.mean.diff

Gini Mean Difference Statistic
cdfgum

Cumulative Distribution Function of the Gumbel Distribution
par2cdf2

Equivalent Cumulative Distribution Function of Two Distributions
cdfwei

Cumulative Distribution Function of the Weibull Distribution
qualn3

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

Compute Select TL-moment ratios of the Generalized Extreme Value Distribution
are.pargev.valid

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

Estimate the Parameters of the Reverse Gumbel Distribution
is.pe3

Is a Distribution Parameter Object Typed as Pearson Type III
parwak

Estimate the Parameters of the Wakeby Distribution
is.nor

Is a Distribution Parameter Object Typed as Normal
are.parpe3.valid

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

Estimate the Parameters of the Rayleigh Distribution
lmomgev

L-moments of the Generalized Extreme Value Distribution
harmonic.mean

The Harmonic Mean with Zero-Value Correction
lmrdiscord

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

Probability Density Function of the 4-p Asymmetric Exponential Power Distribution
pargum

Estimate the Parameters of the Gumbel Distribution
parwei

Estimate the Parameters of the Weibull Distribution
par2pdf

Probability Density Function of the Distributions
parcau

Estimate the Parameters of the Cauchy Distribution
lmom.test.ray

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

L-moments of the Exponential Distribution
pargpa

Estimate the Parameters of the Generalized Pareto Distribution
expect.max.ostat

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

Compute Select TL-moment ratios of the Exponential Distribution
lmomgno

L-moments of the Generalized Normal Distribution
lmomnor

L-moments of the Normal Distribution
pdfwak

Probability Density Function of the Wakeby Distribution
claudeprecip

Annual Maximum Precipitation Data for Claude, Texas
dlmomco

Probability Density Function of the Distributions
LaguerreHalf

Laguerre Polynomial (Half)
lmomgpa

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

Test L-moment and Parameter Algorithms of the Pearson Type III Distribution
lmomln3

L-moments of the 3-Parameter Log-Normal Distribution
check.pdf

Check and Potentially Graph Probability Density Functions
cdfkur

Cumulative Distribution Function of the Kumaraswamy Distribution
USGSsta14321000peaks

Annual Peak Streamflow Data for U.S. Geological Survey Streamflow-Gaging Station 14321000
is.exp

Is a Distribution Parameter Object Typed as Exponential
is.glo

Is a Distribution Parameter Object Typed as Generalized Logistic
pdfexp

Probability Density Function of the Exponential Distribution
lmom.test.revgum

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

Convert a Parameter Object to a Vector of Parameters
lmomlap

L-moments of the Laplace Distribution
USGSsta08151500peaks

Annual Peak Streamflow Data for U.S. Geological Survey Streamflow-Gaging Station 08151500
pwm.pp

Plotting-Position Sample Probability-Weighted Moments
partexp

Estimate the Parameters of the Truncated Exponential Distribution
are.paraep4.valid

Are the Distribution Parameters Consistent with the 4-p Asymmetric Exponential Power Distribution
pdfpe3

Probability Density Function of the Pearson Type III Distribution
USGSsta06766000dvs

Daily Mean Streamflow Data for U.S. Geological Survey Streamflow-Gaging Station 06766000
prettydist

A Pretty List of Distribution Names
lmom.ub

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

Is a Distribution Parameter Object Typed as Rayleigh
lmomTLgld

Trimmed L-moments (t=1) of the Generalized Lambda Distribution
IRSrefunds.by.state

U.S.~Internal Revenue Service Refunds by State for Fiscal Year 2006
lmom.test.gno

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

L-moments of the Kappa Distribution
is.rice

Is a Distribution Parameter Object Typed as Rice
prob2T

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

L-moments of the 4-p Asymmetric Exponential Power Distribution
USGSsta02366500peaks

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

Are the Distribution Parameters Consistent with the Laplace Distribution
lmomgum

L-moments of the Gumbel Distribution
lmomsRCmark

Sample L-moments Moments for Right-Tail Censoring by a Marking Variable
pargam

Estimate the Parameters of the Gamma Distribution
lmomgld

L-moments of the Generalized Lambda Distribution
are.parray.valid

Are the Distribution Parameters Consistent with the Rayleigh Distribution
cdfgam

Cumulative Distribution Function of the Gamma Distribution
sen.mean

Sen's Weighted Mean Statistic
parTLgld

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

Probability Density Function of the Normal Distribution
quaglo

Quantile Function of the Generalized Logistic Distribution
lmomrevgum

L-moments of the Reverse Gumbel Distribution
lmompe3

L-moments of the Pearson Type III Distribution
parnor

Estimate the Parameters of the Normal Distribution
pwm.gev

Generalized Extreme Value Plotting-Position Probability-Weighted Moments
quagno

Quantile Function of the Generalized Normal Distribution
is.lap

Is a Distribution Parameter Object Typed as Laplace
freq.curve.all

Compute Frequency Curve for All Distributions
pwmLC

Sample Probability-Weighted Moments for Left-Tail Censoring
lmom.test.gam

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

Cumulative Distribution Function of the Distributions
par2lmom

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

Estimate the Parameters of the Generalized Lambda Distribution
dist.list

List of Distribution Names
lmomRCmark

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

Probability Density Function of the Cauchy Distribution
pargpaRC

Estimate the Parameters of the Generalized Pareto Distribution with Right-Tail Censoring
are.parln3.valid

Are the Distribution Parameters Consistent with the 3-Parameter Log-Normal Distribution
theoLmoms.max.ostat

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

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

Trimmed L-moments of the Generalized Pareto Distribution
lmomgam

L-moments of the Gamma Distribution
quarice

Quantile Function of the Rice Distribution
lmom.test.gpa

Test L-moment and Parameter Algorithms of the Generalized Pareto Distribution
is.cau

Is a Distribution Parameter Object Typed as Cauchy
are.pargum.valid

Are the Distribution Parameters Consistent with the Gumbel Distribution
is.kap

Is a Distribution Parameter Object Typed as Kappa
theoLmoms

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

Cumulative Distribution Function of the Cauchy Distribution
parrice

Estimate the Parameters of the Rice Distribution
quawei

Quantile Function of the Weibull Distribution
is.gpa

Is a Distribution Parameter Object Typed as Generalized Pareto
lmom.test.kap

Test L-moment and Parameter Algorithms of the Kappa Distribution
is.gev

Is a Distribution Parameter Object Typed as Generalized Extreme Value
clearforkporosity

Porosity Data
are.parkap.valid

Are the Distribution Parameters Consistent with the Kappa Distribution
pp

Plotting-Position Formula
pwm

Unbiased Sample Probability-Weighted Moments
pdfgpa

Probability Density Function of the Generalized Pareto Distribution
are.par.valid

Are the Distribution Parameters Consistent with the Distribution
tuliaprecip

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

Test L-moment and Parameter Algorithms of the Generalized Logistic Distribution
pwmRC

Sample Probability-Weighted Moments for Right-Tail Censoring
cdfkap

Cumulative Distribution Function of the Kappa Distribution
cdfexp

Cumulative Distribution Function of the Exponential Distribution
quawak

Quantile Function of the Wakeby Distribution
is.wak

Is a Distribution Parameter Object Typed as Wakeby
pdflap

Probability Density Function of the Laplace Distribution
is.revgum

Is a Distribution Parameter Object Typed as Reverse Gumbel
quagam

Quantile Function of the Gamma Distribution
pwm2lmom

Probability-Weighted Moments to L-moments
cdfrevgum

Cumulative Distribution Function of the Reverse Gumbel Distribution
lmom.test.gev

Test L-moment and Parameter Algorithms of the Generalized Extreme Value Distribution
tlmrglo

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

Cumulative Distribution Function of the Generalized Logistic Distribution
USGSsta05405000peaks

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

Random Deviates of a Distribution
lmomsf01

The Sample L-moments and L-moment Ratios from Nonexceedance Probabilities on the Bounds of 0 to 1
tlmrnor

Compute Select TL-moment ratios of the Normal Distribution
lmorph

Morph an L-moment Object
lmomtexp

L-moments of the Truncated Exponential Distribution
pwm.ub

Unbiased Sample Probability-Weighted Moments
theoTLmoms

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

Probability Density Function of the Generalized Lambda Distribution
quaray

Quantile Function of the Rayleigh Distribution
lmomwak

L-moments of the Wakeby Distribution
cdfgev

Cumulative Distribution Function of the Generalized Extreme Value Distribution
quaaep4

Quantile Function of the 4-p Asymmetric Exponential Power Distribution
lmoms

The Sample L-moments and L-moment Ratios
quagev

Quantile Function of the Generalized Extreme Value Distribution
tlmrgum

Compute Select TL-moment ratios of the Gumbel Distribution
is.gld

Is a Distribution Parameter Object Typed as Generalized Lambda
pargno

Estimate the Parameters of the Generalized Normal Distribution
par2cdf

Cumulative Distribution Function of the Distributions
tlmrln3

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

Estimate the Parameters of the Exponential Distribution
quagum

Quantile Function of the Gumbel Distribution
pdfgum

Probability Density Function of the Gumbel Distribution
pargev

Estimate the Parameters of the Generalized Extreme Value Distribution
are.pargpa.valid

Are the Distribution Parameters Consistent with the Generalized Pareto Distribution
tlmrray

Compute Select TL-moment ratios of the Rayleigh Distribution
lmrdia

L-moment Ratio Diagram Components
par2qua

Quantile Function of the Distributions
lmom.diff

Difference Between L-moments of the Distribution and the L-moments of the Data
quaexp

Quantile Function of the Exponential Distribution
pdfrice

Probability Density Function of the Rice Distribution
parglo

Estimate the Parameters of the Generalized Logistic Distribution
quanor

Quantile Function of the Normal Distribution
quarevgum

Quantile Function of the Reverse Gumbel Distribution
cdfgno

Cumulative Distribution Function of the Generalized Normal Distribution
parpe3

Estimate the Parameters of the Pearson Type III Distribution
pdfgev

Probability Density Function of the Generalized Extreme Value Distribution
plotlmrdia

Plot L-moment Ratio Diagram
nonexceeds

Common Nonexceedance Probabilities
paraep4

Estimate the Parameters of the 4-p Asymmetric Exponential Power Distribution
parlap

Estimate the Parameters of the Laplace Distribution
lmomwei

L-moments of the Weibull Distribution
cdfnor

Cumulative Distribution Function of the Normal Distribution
cdfwak

Cumulative Distribution Function of the Wakeby Distribution
quape3

Quantile Function of the Pearson Type III Distribution
gen.freq.curves

Plot Randomly Generated Frequency Curves from a Parent Distribution
parkap

Estimate the Parameters of the Kappa Distribution
lmom.test.wei

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

L-moments to Probability-Weighted Moments
vec2TLmom

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

Trimmed L-moments of the Cauchy Distribution
pdfglo

Probability Density Function of the Generalized Logistic Distribution
pdftexp

Probability Density Function of the Truncated Exponential Distribution
quagpa

Quantile Function of the Generalized Pareto Distribution
tlmrgpa

Compute Select TL-moment ratios of the Generalized Pareto
qua2ci

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

Probability Density Function of the Kumaraswamy Distribution
z.par2cdf

Cumulative Distribution Function of Blipped Distributions
parkur

Estimate the Parameters of the Kumaraswamy Distribution
pwm2vec

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

The Sample L-comoments for Two Variables
tlmrcau

Compute Select TL-moment ratios of the Cauchy Distribution
quacau

Quantile Function of the Cauchy Distribution
pdfkap

Probability Density Function of the Kappa Distribution
tlmrpe3

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

Quantile Function of the Distributions
is.aep4

Is a Distribution Parameter Object Typed as 4-p Asymmetric Exponential Power
lmom.test.exp

Test L-moment and Parameter Algorithms of the Exponential Distribution
quagld

Quantile Function of the Generalized Lambda Distribution
qua.ostat

Compute the Quantiles of the Distribution of an Order Statistic
qualap

Quantile Function of the Laplace Distribution
lmom.test.ln3

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

Quantile Function of the Truncated Exponential Distribution
lmom.test.nor

Test L-moment and Parameter Algorithms of the Normal Distribution
lmom.test.wak

Test L-moment and Parameter Algorithms of the Wakeby Distribution
pmoms

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

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

Estimate the Parameters of the Generalized Pareto Distribution using Trimmed L-moments
tulia6Eprecip

Annual Maximum Precipitation Data for Tulia 6E, Texas
lmomgpaRC

B-type L-moments of the Generalized Pareto Distribution with Right-Tail Censoring
lmom.test.all

Test All lmom.CCC.test Functions
lmomkur

L-moments of the Kumaraswamy Distribution
pdfgno

Probability Density Function of the Generalized Normal Distribution
pdfwei

Probability Density Function of the Weibull Distribution
vegaprecip

Annual Maximum Precipitation Data for Vega, Texas
pdfrevgum

Probability Density Function of the Reverse Gumbel Distribution
quakap

Quantile Function of the Kappa Distribution
vec2lmom

Convert a Vector of L-moments to a L-moment Object
lmomrice

L-moments of the Rice Distribution
vec2pwm

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

The Theoretical Probability-Weighted Moments using Integration of the Quantile Function
z.par2qua

Quantile Function of the Blipped Distributions
pdfgam

Probability Density Function of the Gamma Distribution
lmomglo

L-moments of the Generalized Logistic Distribution
vec2par

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

Conversion between B- and A-Type Probability-Weighted Moments for Right-Tail Censoring of An Appropriate Distribution
are.parkur.valid

Are the Distribution Parameters Consistent with the Kumaraswamy Distribution
check.fs

Check Vector of Nonexceedance Probabilities
hmomco

Hazard Functions of the Distributions
parln3

Estimate the Parameters of the 3-Parameter Log-Normal Distribution
par2qua2

Equivalent Quantile Function of Two Distributions
quakur

Quantile Function of the Kumaraswamy Distribution