Learn R Programming

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

lmomco (version 1.4.3)

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,282

Version

1.4.3

License

GPL

Maintainer

William Asquith

Last Published

September 1st, 2011

Functions in lmomco (1.4.3)

are.pargam.valid

Are the Distribution Parameters Consistent with the Gamma Distribution
USGSsta08190000peaks

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

Are the Distribution Parameters Consistent with the Truncated Exponential Distribution
Lcomoment.correlation

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

Cumulative Distribution Function of the Rice Distribution
TLmom

A Sample Trimmed L-moment
are.parwak.valid

Are the Distribution Parameters Consistent with the Wakeby Distribution
cdfgam

Cumulative Distribution Function of the Gamma Distribution
USGSsta08167000peaks

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

Are the Distribution Parameters Consistent with the Normal Distribution
check.pdf

Check and Potentially Graph Probability Density Functions
are.parrevgum.valid

Are the Distribution Parameters Consistent with the Reverse Gumbel Distribution
cdfgpa

Cumulative Distribution Function of the Generalized Pareto Distribution
cdfexp

Cumulative Distribution Function of the Exponential Distribution
fliplmoms

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

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

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

Cumulative Distribution Function of the Generalized Lambda Distribution
are.parln3.valid

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

Are the Distribution Parameters Consistent with the Generalized Lambda Distribution
Lcomoment.coefficients

L-comoment Coefficient Matrix
lmom.diff

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

Cumulative Distribution Function of the Rayleigh Distribution
cdfpe3

Cumulative Distribution Function of the Pearson Type III Distribution
USGSsta02366500peaks

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

Are the Distribution Parameters Consistent with the Weibull Distribution
is.cau

Is a Distribution Parameter Object Typed as Cauchy
cdfnor

Cumulative Distribution Function of the Normal Distribution
cdfkur

Cumulative Distribution Function of the Kumaraswamy Distribution
amarilloprecip

Annual Maximum Precipitation Data for Amarillo, Texas
is.gno

Is a Distribution Parameter Object Typed as Generalized Normal
are.par.valid

Are the Distribution Parameters Consistent with the Distribution
T2prob

Convert a Vector of T-year Return Periods to Annual Nonexceedance Probabilities
lmom.test.glo

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

Cumulative Distribution Function of the Generalized Extreme Value Distribution
herefordprecip

Annual Maximum Precipitation Data for Hereford, Texas
is.gpa

Is a Distribution Parameter Object Typed as Generalized Pareto
are.parglo.valid

Are the Distribution Parameters Consistent with the Generalized Logistic Distribution
Lcomoment.Wk

Weighting Coefficient for Sample L-comoment
is.gam

Is a Distribution Parameter Object Typed as Gamma
USGSsta08151500peaks

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

Test L-moment and Parameter Algorithms of the Gumbel Distribution
is.texp

Is a Distribution Parameter Object Typed as Truncated Exponential
cdfrevgum

Cumulative Distribution Function of the Reverse Gumbel Distribution
lmomTLgld

Trimmed L-moments (t=1) of the Generalized Lambda Distribution
USGSsta14321000peaks

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

Are the Distribution Parameters Consistent with the Kumaraswamy Distribution
USGSsta01515000peaks

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

Is a Distribution Parameter Object Typed as Generalized Lambda
Introduction

Introduction to R library lmoments
is.kap

Is a Distribution Parameter Object Typed as Kappa
cdfcau

Cumulative Distribution Function of the Cauchy Distribution
USGSsta05405000peaks

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

Is a Distribution Parameter Object Typed as Generalized Extreme Value
lmom.test.gev

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

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

L-moments of the Gamma Distribution
gen.freq.curves

Plot Randomly Generated Frequency Curves from a Parent Distribution
LaguerreHalf

Laguerre Polynomial (Half)
are.pargpa.valid

Are the Distribution Parameters Consistent with the Generalized Pareto Distribution
is.ln3

Is a Distribution Parameter Object Typed as 3-Parameter Log-Normal
lmom.test.gpa

Test L-moment and Parameter Algorithms of the Generalized Pareto Distribution
USGSsta06766000dvs

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

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

Gini Mean Difference Statistic
lmom.test.gno

Test L-moment and Parameter Algorithms of the Generalized Normal Distribution
are.parrice.valid

Are the Distribution Parameters Consistent with the Rice Distribution
lmom.test.kap

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

L-moments of the Generalized Logistic Distribution
Apwm2BpwmRC

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

Are the Distribution Parameters Consistent with the Generalized Extreme Value Distribution
is.nor

Is a Distribution Parameter Object Typed as Normal
cdfglo

Cumulative Distribution Function of the Generalized Logistic Distribution
cdftexp

Cumulative Distribution Function of the Truncated Exponential Distribution
is.ray

Is a Distribution Parameter Object Typed as Rayleigh
cdfln3

Cumulative Distribution Function of the 3-Parameter Log-Normal Distribution
freq.curve.all

Compute Frequency Curve for All Distributions
are.parcau.valid

Are the Distribution Parameters Consistent with the Cauchy Distribution
cdfwak

Cumulative Distribution Function of the Wakeby Distribution
clearforkporosity

Porosity Data
are.pargno.valid

Are the Distribution Parameters Consistent with the Generalized Normal Distribution
dist.list

List of Distribution Names
is.pe3

Is a Distribution Parameter Object Typed as Pearson Type III
is.wei

Is a Distribution Parameter Object Typed as Weibull
Lcomoment.Lk12

Compute a Single Sample L-comoment
hmomco

Hazard Functions of the Distributions
lmomrice

L-moments of the Rice Distribution
lmom.test.wei

Test L-moment and Parameter Algorithms of the Weibull Distribution
lmom.test.all

Test All lmom.CCC.test Functions
lmom.test.revgum

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

L-moments to Probability-Weighted Moments
parglo

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

Compute the Expection of a Maximum Order Statistic (or others)
is.glo

Is a Distribution Parameter Object Typed as Generalized Logistic
lmomwei

L-moments of the Weibull Distribution
are.parkap.valid

Are the Distribution Parameters Consistent with the Kappa Distribution
lmom.test.exp

Test L-moment and Parameter Algorithms of the Exponential Distribution
are.parexp.valid

Are the Distribution Parameters Consistent with the Exponential Distribution
par2cdf

Cumulative Distribution Function of the Distributions
lmom2par

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

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

Estimate the Parameters of the Wakeby Distribution
pdftexp

Probability Density Function of the Truncated Exponential Distribution
lmom.test.wak

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

Lifetime of Drill Bits
claudeprecip

Annual Maximum Precipitation Data for Claude, Texas
Lcomoment.matrix

Compute Sample L-comoment Matrix
cdfkap

Cumulative Distribution Function of the Kappa Distribution
is.revgum

Is a Distribution Parameter Object Typed as Reverse Gumbel
are.lmom.valid

Are the L-moments valid
pwm.pp

Plotting-Position Sample Probability-Weighted Moments
parkur

Estimate the Parameters of the Kumaraswamy Distribution
pdfcau

Probability Density Function of the Cauchy Distribution
pdfrevgum

Probability Density Function of the Reverse Gumbel Distribution
lmomexp

L-moments of the Exponential Distribution
lmom.references

Useful References Related to L-moments
cdfwei

Cumulative Distribution Function of the Weibull Distribution
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
lmomTLgpa

Trimmed L-moments of the Generalized Pareto Distribution
lmomnor

L-moments of the Normal Distribution
lmomsf01

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

Morph an L-moment Object
lmom.test.ray

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

Estimate the Parameters of the Generalized Extreme Value Distribution
pmoms

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

Probability Density Function of the Distributions
pwm2vec

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

Probability Density Function of the Kumaraswamy Distribution
lmomln3

L-moments of the 3-Parameter Log-Normal Distribution
is.kur

Is a Distribution Parameter Object Typed as Kumaraswamy
quagam

Quantile Function of the Gamma Distribution
lmompe3

L-moments of the Pearson Type III Distribution
pdfgno

Probability Density Function of the Generalized Normal Distribution
cdfgno

Cumulative Distribution Function of the Generalized Normal Distribution
pargam

Estimate the Parameters of the Gamma Distribution
tlmrwei

Compute Select TL-moment ratios of the Weibull Distribution
lmomgno

L-moments of the Generalized Normal Distribution
lmoms

The Sample L-moments and L-moment Ratios
is.gum

Is a Distribution Parameter Object Typed as Gumbel
lmomgpa

L-moments of the Generalized Pareto Distribution
cdfgum

Cumulative Distribution Function of the Gumbel Distribution
parrevgum

Estimate the Parameters of the Reverse Gumbel Distribution
par2cdf2

Equivalent Cumulative Distribution Function of Two Distributions
lmomrevgum

L-moments of the Reverse Gumbel Distribution
quagpa

Quantile Function of the Generalized Pareto Distribution
quagno

Quantile Function of the Generalized Normal Distribution
par2qua2

Equivalent Quantile Function of Two Distributions
is.rice

Is a Distribution Parameter Object Typed as Rice
lmomgum

L-moments of the Gumbel Distribution
lmom2vec

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

Trimmed L-moments of the Cauchy Distribution
qualn3

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

Convert a Parameter Object to a Vector of Parameters
lmomRCmark

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

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

Estimate the Parameters of the Exponential Distribution
lmomkap

L-moments of the Kappa Distribution
pdfkap

Probability Density Function of the Kappa Distribution
check.fs

Check Vector of Nonexceedance Probabilities
pdfgam

Probability Density Function of the Gamma Distribution
pargpa

Estimate the Parameters of the Generalized Pareto Distribution
pdfgum

Probability Density Function of the Gumbel Distribution
pwm

Unbiased Sample Probability-Weighted Moments
harmonic.mean

The Harmonic Mean with Zero-Value Correction
parTLgld

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

Unbiased Sample L-moments by Direct Sample Estimators
pdfwak

Probability Density Function of the Wakeby Distribution
lmomtexp

L-moments of the Truncated Exponential Distribution
quagld

Quantile Function of the Generalized Lambda Distribution
pargld

Estimate the Parameters of the Generalized Lambda Distribution
theopwms

The Theoretical Probability-Weighted Moments using Integration of the Quantile Function
is.wak

Is a Distribution Parameter Object Typed as Wakeby
tlmrln3

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

Probability Density Function of the Rayleigh Distribution
par2qua

Quantile Function of the Distributions
pdfglo

Probability Density Function of the Generalized Logistic Distribution
parnor

Estimate the Parameters of the Normal Distribution
tlmrgpa

Compute Select TL-moment ratios of the Generalized Pareto
par2lmom

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

A Pretty List of Distribution Names
pargpaRC

Estimate the Parameters of the Generalized Pareto Distribution with Right-Tail Censoring
pwm.ub

Unbiased Sample Probability-Weighted Moments
lmomgev

L-moments of the Generalized Extreme Value Distribution
parwei

Estimate the Parameters of the Weibull Distribution
pargno

Estimate the Parameters of the Generalized Normal Distribution
tlmrgev

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

Cumulative Distribution Function of the Distributions
lmomgld

L-moments of the Generalized Lambda Distribution
nonexceeds

Common Nonexceedance Probabilities
lmomwak

L-moments of the Wakeby Distribution
lmomray

L-moments of the Rayleigh Distribution
tlmrgno

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

Probability Density Function of the Pearson Type III Distribution
lmom.test.pe3

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

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

Estimate the Parameters of the Cauchy Distribution
sen.mean

Sen's Weighted Mean Statistic
tlmrray

Compute Select TL-moment ratios of the Rayleigh Distribution
pdfnor

Probability Density Function of the Normal Distribution
quarevgum

Quantile Function of the Reverse Gumbel Distribution
quawei

Quantile Function of the Weibull Distribution
par2pdf

Probability Density Function of the Distributions
genci

Generate Confidence Intervals for Quantiles of a Parent Distribution
lmomgpaRC

B-type L-moments of the Generalized Pareto Distribution with Right-Tail Censoring
is.exp

Is a Distribution Parameter Object Typed as Exponential
pargum

Estimate the Parameters of the Gumbel Distribution
lmrdia

L-moment Ratio Diagram Components
quagev

Quantile Function of the Generalized Extreme Value Distribution
quanor

Quantile Function of the Normal Distribution
partexp

Estimate the Parameters of the Truncated Exponential Distribution
qua.ostat

Compute the Quantiles of the Distribution of an Order Statistic
pdfgld

Probability Density Function of the Generalized Lambda Distribution
qlmomco

Quantile Function of the Distributions
theoLmoms.max.ostat

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

L-moments of the Kumaraswamy Distribution
qua2ci

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

Sample Probability-Weighted Moments for Right-Tail Censoring
quakap

Quantile Function of the Kappa Distribution
tlmrcau

Compute Select TL-moment ratios of the Cauchy Distribution
tlmrexp

Compute Select TL-moment ratios of the Exponential Distribution
lmrdiscord

Compute Discordance on L-CV, L-skew, and L-kurtosis
pwm.gev

Generalized Extreme Value Plotting-Position Probability-Weighted Moments
plotlmrdia

Plot L-moment Ratio Diagram
quape3

Quantile Function of the Pearson Type III Distribution
tlmrpe3

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

Annual Maximum Precipitation Data for Tulia, Texas
quaglo

Quantile Function of the Generalized Logistic Distribution
quagum

Quantile Function of the Gumbel Distribution
lcomoms2

The Sample L-comoments for Two Variables
parkap

Estimate the Parameters of the Kappa Distribution
parpe3

Estimate the Parameters of the Pearson Type III Distribution
vec2TLmom

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

Probability Density Function of the Generalized Extreme Value Distribution
parrice

Estimate the Parameters of the Rice Distribution
parray

Estimate the Parameters of the Rayleigh Distribution
pp

Plotting-Position Formula
vegaprecip

Annual Maximum Precipitation Data for Vega, Texas
quarice

Quantile Function of the Rice Distribution
pdfwei

Probability Density Function of the Weibull Distribution
tlmrglo

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

Sample Probability-Weighted Moments for Left-Tail Censoring
pdfrice

Probability Density Function of the Rice Distribution
quaray

Quantile Function of the Rayleigh Distribution
theoLmoms

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

Quantile Function of the Truncated Exponential Distribution
tulia6Eprecip

Annual Maximum Precipitation Data for Tulia 6E, Texas
quaexp

Quantile Function of the Exponential Distribution
quacau

Quantile Function of the Cauchy Distribution
vec2par

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

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

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

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

Probability Density Function of the Exponential Distribution
quakur

Quantile Function of the Kumaraswamy Distribution
z.par2qua

Quantile Function of the Blipped Distributions
tlmrgum

Compute Select TL-moment ratios of the Gumbel Distribution
quawak

Quantile Function of the Wakeby Distribution
vec2pwm

Convert a Vector of Probability-Weighted Moments to a Probability-Weighted Moments Object
z.par2cdf

Cumulative Distribution Function of Blipped Distributions
IRSrefunds.by.state

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

Are the Distribution Parameters Consistent with the Gumbel Distribution
are.parpe3.valid

Are the Distribution Parameters Consistent with the Pearson Type III Distribution
are.parray.valid

Are the Distribution Parameters Consistent with the Rayleigh Distribution
canyonprecip

Annual Maximum Precipitation Data for Canyon, Texas
pdfgpa

Probability Density Function of the Generalized Pareto Distribution
pdfln3

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

Random Deviates of a Distribution
pwm2lmom

Probability-Weighted Moments to L-moments
tlmrnor

Compute Select TL-moment ratios of the Normal Distribution