Learn R Programming

copBasic (version 2.2.16)

General Bivariate Copula Theory and Many Utility Functions

Description

Extensive functions for bivariate copula (bicopula) computations and related operations for bicopula theory. The lower, upper, product, and select other bicopula are implemented along with operations including the diagonal, survival copula, dual of a copula, co-copula, and numerical bicopula density. Level sets, horizontal and vertical sections are supported. Numerical derivatives and inverses of a bicopula are provided through which simulation is implemented. Bicopula composition, convex combination, asymmetry extension, and products also are provided. Support extends to the Kendall Function as well as the Lmoments thereof. Kendall Tau, Spearman Rho and Footrule, Gini Gamma, Blomqvist Beta, Hoeffding Phi, Schweizer- Wolff Sigma, tail dependency, tail order, skewness, and bivariate Lmoments are implemented, and positive/negative quadrant dependency, left (right) increasing (decreasing) are available. Other features include Kullback-Leibler Divergence, Vuong Procedure, spectral measure, and Lcomoments for fit and inference, Lcomoment ratio diagrams, maximum likelihood, and AIC, BIC, and RMSE for goodness-of-fit.

Copy Link

Version

Install

install.packages('copBasic')

Monthly Downloads

496

Version

2.2.16

License

GPL-2

Maintainer

William Asquith

Last Published

August 31st, 2026

Functions in copBasic (2.2.16)

CLcop

The Clayton Copula
AMHcop

The Ali--Mikhail--Haq Copula
COPinv2

The Inverse of a Copula for U with respect to V
CIRCcop

Copula of Circular Uniform Distribution
COP

The Copula
EMPIRgrid_fast

Fast Grid of the Bivariate Empirical Copula
EMPIRcopdf

Data Frame Representation of the Bivariate Empirical Copula
EMPIRcop

The Bivariate Empirical Copula
EMPIRgrid

Grid of the Bivariate Empirical Copula
COPinv

The Inverse of a Copula for V with respect to U
EMPIRgrid_lkup

Empirical Copula by Bilinear Interpolation of Gridded Bivariate Empirical Copula
EMPIRqua.regress2

Quantile Regression of the Grid of the Bivariate Empirical Copula for U with respect to V
EMPIRmed.regress

Median Regression of the Grid of the Bivariate Empirical Copula for V with respect to U
EMPIRgridder

Derivatives of the Grid of the Bivariate Empirical Copula for V with respect to U
EMPIRgridderinv

Derivative Inverses of the Grid of the Bivariate Empirical Copula for V with respect to U
EMPIRgridderinv2

Derivative Inverses of the Grid of the Bivariate Empirical Copula for U with respect to V
EMPIRgridder2

Derivatives of the Grid of the Bivariate Empirical Copula for U with respect to V
EMPIRmed.regress2

Median Regression of the Grid of the Bivariate Empirical Copula for U with respect to V
EMPIRqua.regress

Quantile Regression of the Grid of the Bivariate Empirical Copula for V with respect to U
EMPIRsim

Simulate a Bivariate Empirical Copula
FRECHETcop

The Fréchet Family Copula
EvuCOP

Expected value of V given U
FRcop

The Frank Copula
EuvCOP

Expected value of U given V
GHcop

The Gumbel--Hougaard Extreme Value Copula
GLcop

The Galambos Extreme Value Copula (with Gamma Power Mixture [Joe/BB4] and Lower Extreme Value Limit)
EMPIRsimv

Simulate a Bivariate Empirical Copula For a Fixed Value of U
FGMcop

The Generalized Farlie--Gumbel--Morgenstern Copula
HRcop

The Hüsler--Reiss Extreme Value Copula
HAIRPINcop

The Hairpin Copula
LCOMDIA_GH2cop

L-comoment Ratio Diagrams for 2-Parameter Gumbel--Hougaard Extreme Value Copula
M

The Fréchet--Hoeffding Upper-Bound Copula
LCOMDIA_GH3cop

L-comoment Ratio Diagrams for 3-Parameter Gumbel--Hougaard Extreme Value Copula
JOcopB5

The Joe/B5 Copula (B5)
MOcop

The Marshall--Olkin Copula
LCOMDIA_ManyCops

L-comoment Ratio Diagrams for Many Copulas
LMRuvCOP

Conditional L-moments of the Distribution of U given V
LzCOPpermsym

Maximum Asymmetry Measure (or Vector) of a Copula by Exchangeability (Permutation Symmetry)
LMRvuCOP

Conditional L-moments of the Distribution of V given U
JOMAcop

The Joe--Ma Copula
PARETOcop

The Pareto Copula
N4220cop

The Copula of Equation 4.2.20 of Nelsen's Book
N4212cop

The Copula of Equation 4.2.12 of Nelsen's Book
ORDSUMcop

Ordinal Sums of M-Copula
PLACKETTcop

The Plackett Copula
M_N5p12b

Shuffles of Upper-Bound Copula, Example 5.12b of Nelsen's Book
PLACKETTpar

Estimate the Parameter of the Plackett Copula
ORDSUWcop

Ordinal Sums of W-Copula
P

The Product (Independence) Copula
NORMcop

The Normal (Gaussian) Copula
RAYcop

The Rayleigh Copula
TRIcop

The Triangular Copula
ReineckeWell266

Porosity and Permeability Data for Well-266 of the Reinecke Oil Field, Horseshoe Atoll, Texas
ReineckeWells

Porosity and Permeability Data for the Reinecke Oil Field, Horseshoe Atoll, Texas
PLACKETTsim

Direct Simulation of a Plackett Copula
W_N5p12a

Ordinal Sums of Lower-Bound Copula, Example 5.12a of Nelsen's Book
Tcop

The t-Student Copula
PSP

The Ratio of the Product Copula to Summation minus Product Copula
W

The Fréchet--Hoeffding Lower-Bound Copula
RFcop

The Raftery Copula
aicCOP

Akaike Information Criterion between a Fitted Coupla and an Empirical Copula
bicCOP

Bayesian Information Criterion between a Fitted Coupla and an Empirical Copula
blomatrixCOP

A Matrix of Blomqvist-like Betas of a Copula
bicoploc

Analog to Line of Organic Correlation by Copula Diagonal
blomCOP

The Blomqvist Beta of a Copula
breveCOP

Add Asymmetry to a Copula
coCOP

The Co-Copula Function
asCOP

Wrapper on a User-Level Formula to Become a Copula Function
bilmoms

Bivariate L-moments and L-comoments of a Copula
blomCOPss

Blomqvist (Schmid--Schmidt) Betas of a Copula
derCOP

Numerical Derivative of a Copula for V with respect to U
composite1COP

Composition of a Single Symmetric Copula with Two Compositing Parameters (Khoudraji Device with Pi Independence)
densityCOP

Density of a Copula
convexCOP

Convex Combination of an Arbitrary Number of Copulas
composite3COP

(Extended) Composition of Two Copulas with Four Compositing Parameters
composite2COP

Composition of Two Copulas with Two Compositing Parameters (Khoudraji Device)
densityCOPplot

Contour Density Plot of a Copula
copBasic-package

Basic Theoretical Copula, Empirical Copula, and Various Utility Functions
convex2COP

Convex Combination of Two Copulas
copBasic.fitpara

A Single or Multi-Parameter Optimization Engine (Beta Version)
derCOP2

Numerical Derivative of a Copula for U with respect to V
diagCOP

The Diagonals of a Copula
glueCOP

Gluing Two Copulas
derCOPinv2

Numerical Derivative Inverse of a Copula for U with respect to V
duCOP

The Dual of a Copula Function
diagCOPatf

Numerical Rooting the Diagonal of a Copula
gEVcop

The Gaussian-based (Extreme Value) Copula
derCOPinv

Numerical Derivative Inverse of a Copula for V with respect to U
footCOP

The Spearman Footrule of a Copula
giniCOP

The Gini Gamma of a Copula
isCOP.RTI

Is a Copula Right-Tail Increasing
isCOP.LTD

Is a Copula Left-Tail Decreasing
hoefCOP

The Hoeffding Phi of a Copula or Lp Distances (Independence, Radial Asymmetry, or Reflection Symmetry Forms)
isCOP.PQD

The Positively Quadrant Dependency State of a Copula
joeskewCOP

Joe's Nu-Skew and the copBasic Nu-Star of a Copula
isfuncCOP

Is a General Bivariate Function a Copula by Gridded Search?
isCOP.radsym

Is a Copula Radially Symmetric
isCOP.permsym

Is a Copula Permutation Symmetric
joint.curvesCOP

Compute Coordinates of the Marginal Probabilities given joint AND or OR Probabilities
gridCOP

Compute a Copula on a Grid
lcomCOP

L-comoments and Bivariate L-moments of a Copula
jointCOP

Compute Equal Marginal Probabilities Given a Single Joint AND or OR Probability for a Copula
joint.curvesCOP2

Compute Coordinates of the Marginal Probabilities given joint AND or OR Probability
kfuncCOPinv

The Inverse Kendall Function of a Copula
kullCOP

Kullback--Leibler Divergence, Jeffrey Divergence, and Kullback--Leibler Sample Size
lcomoms2.ABKGcop2parameter

Convert L-comoments to Parameters of Alpha-Beta-Kappa-Gamma Compositions of Two One-Parameter Copulas
kfuncCOP_Pd

The Kendall (Distribution) Function of d-Dimensional Independence Copula
lcomCOPpv

Simulating the Sample Distribution(s) of L-correlation, L-coskew, and L-cokurtosis for a Copula
kfuncCOPlmoms

The L-moments of the Kendall Function of a Copula
kfuncCOP

The Kendall (Distribution) Function of a Copula
prod2COP

The Product of Two Copulas
level.setCOP

Compute a Level Set of a Copula V with respect to U
level.curvesCOP2

Compute and Plot Level Curves of a Copula U with respect to V
med.regressCOP2

Perform Median Regression using a Copula by Numerical Derivative Method for U with respect to V
psepolar

Pseudo-Polar Representation of Bivariate Data
lcomoms2.ABcop2parameter

Convert L-comoments to Parameters of Alpha-Beta Compositions of Two One-Parameter Copulas
med.regressCOP

Perform Median Regression using a Copula by Numerical Derivative Method for V with respect to U
level.setCOP2

Compute a Level Set of a Copula U with respect to V
level.curvesCOP

Compute and Plot Level Curves of a Copula V with respect to U
mleCOP

Maximum Pseudo-Log-Likelihood Estimation for Copula Parameter Estimation
rhoCOP

The Spearman Rho of a Copula
qua.regressCOP2

Perform Quantile Regression using a Copula by Numerical Derivative Method for U with respect to V
qua.regressCOP

Perform Quantile Regression using a Copula by Numerical Derivative Method for V with respect to U
rN4220cop

The (Reflected) Copula of Equation 4.2.20 of Nelsen's Book
semicorCOP

Lower and Upper Semi-Correlations of a Copula
rhobevCOP

A Dependence Measure for a Bivariate Extreme Value Copula based on the Expectation of the Product of Negated Log-Transformed Random Variables U and V
sectionCOP

The Sections or Derivative of the Sections of a Copula
simCOP

Simulate a Copula by Numerical Derivative Method
qua.regressCOP.draw

Draw Quantile Regressions using a Copula by Numerical Derivative Method for V with respect to U or U with respect to V
rmseCOP

Root Mean Square Error between a Fitted Copula and an Empirical Copula
stabtaildepf

Estimation of the Stable Tail Dependence Function
tEVcop

The t-EV (Extreme Value) Copula
surCOP

The Survival Copula
surfuncCOP

The Joint Survival Function
simCOPmicro

Simulate V from U through a Copula by Numerical Derivative Method
spectralmeas

Estimation of the Spectral Measure
simcomposite3COP

Compute the L-comoments of a Four-Value Composited Copula by Simulation
tailconCOP

The Tail Concentration Function of a Copula
statTn

The Tn Statistic of a Fitted Copula to an Empirical Copula
simcompositeCOP

Compute the L-comoments of a Two-Value Composited Copula by Simulation
wolfCOPsamc

Monte Carlo Integration of Schweizer--Wolff Sigma
vuongCOP

The Vuong Procedure for Parametric Copula Comparison
tailordCOP

The Lower- and Upper-Tail Orders of a Copula
tauCOP

The Kendall Tau and Concordance Function of a Copula
wolfCOPtest_check

Empirical Comparison by Simulation between Independence Test by Schweizer--Wolff Sigma from this package to Independence Test from copula Package
wolfCOPtest

Empirically Created Schweizer and Wolff Sigma Test Against an Independence Copula
taildepCOP

The Lower- and Upper-Tail Dependency Parameters of a Copula
uvlmoms

Bivariate Skewness after Joe (2014) or the Univariate L-moments of Combined U and V
wolfCOP

Schweizer and Wolff Sigma of a Copula
wolfCOPtest_data_smlsam

Small Sample Components for Schweizer--Wolff Sigma Test