Learn R Programming

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

copBasic (version 1.5.1)

Basic Theoretical Copula, Empirical Copula, and Various Utility Functions

Description

This package implements extensive, but select, functions for copula computations and is used by several other packages by the author. This particular package provides the lower (W), upper (M), and product (P) copulas as well as the product-summation-product copula (PSP). Wrapper functions for the copula (COP), survival copula (surCOP), dual of a copula (duCOP), and co-copula (coCOP) are provided. The package has (level.curvesCOP) for drawing level curves of a given copula, and this function uses the inverse of a copula (COPinv and a COPinv2 is provided for completeness). The numerical derivative for the derivative of a copula is provided by (derCOP and derCOP2) and the inversion of these functions are by (derCOPinv and derCOPinv2). The diagonal sections of a copula are supported by (diagCOP), and sections and derivatives of sections are supported by (sectionCOP). The inverses of copula derivatives are important for random variate generation. Random variate generation for a copula using the conditional distribution method and the deriviative of a copula is provided by (simCOP and the reduced capability simCOPmicro). For slightly broader application for purposes of education and experimentation with copulas, this package also supports the Plackett copula (PLACKETTcop) because of the general applicability of this copula. The Plackett copula is comprehensive, which means that it can attain complete negative association, independence, and positive association. Plackett parameter estimation is straightforward with (PLACKETTpar). A Plackett-specific, random-variate algorithm is by (PLACKETTsim). Composition of a single copula for two external parameters is by (composite1COP). Composition of two copulas through use of two external parameters is provided by (composite2COP), and the composition of two copulas through the use of four external parameters is provided by (composite3COP). Composite copula random variates are generated by (simcompositeCOP). These compositions generally yield asymmetric copulas. A data set is provided that contains darts thrown at the L-comoment space of a Plackett-Plackett composited compula; these data might be used for experimental copula estimation by the method of L-comoments. The package also provides a full suite of functions to numerically compute measures of association through concordance for a given copula such as Kendall's Tau (tauCOP), Spearman's Rho (rhoCOP), Gini's Gamma (giniCOP), and Blomqvist's Beta (blomCOP). The Schweizer and Wolff's Sigma (wolfCOP) is implemented as a measure of dependency as opposed the the concordance measures just listed. Upper and lower tail dependence is computed by numerical limit convergence by (taildepCOP). A numerical computation of the logical whether a copula is left-tail decreasing or right-tail increasing is provided by (isCOP.LTD and isCOP.RTI). The package supports quantile and median regression through (qua.regressCOP, qua.regress2COP, med.regressCOP, med.regress2COP) for a given copula where "2" represents V with respect to U instead of U with respect to V. The regressions can be plotted by (qua.regressCOP.draw). **Empirical Copulas** Empirical copulas are supported by (EMPIRcop) and the computation of a data frame of the copula for each sample value is provided by (EMPIRcopdf). The empirical copula functions are heavily dependent on a simple grid or matrix structure, which is created by (EMPIRgrid). The derivatives of the grid, which are the conditional cumulative distribution functions of the copula sections, are computed by (EMPIRgridder and EMPIRgridder2). The inverses of the derivatives, which are the conditional quantile functions of the copula sections, are computed by (EMPIRgridderinv and EMPIRgridderinv2). Support for median and quantile regression of the empricial copula are provided by (EMPIRmed.regress, EMPIRmed.regress2, EMPIRqua.regress, EMPIRqua.regress2), which use the grids emanating from (EMPIRgridderinv and EMPIRgridderinv2). Support for simulation of V using U from an empirical copula is provided by (EMPIRsim or by EMPIRsimv).

Copy Link

Version

Install

install.packages('copBasic')

Monthly Downloads

560

Version

1.5.1

License

GPL

Maintainer

William Asquith

Last Published

December 6th, 2011

Functions in copBasic (1.5.1)

EMPIRgridderinv

Derivatives of the Grid of the Bivariate Emprical Copula
PlackettPlackettABKGtest

Parameters and L-comoments of a Composition of Two Plackett Copulas
level.curvesCOP

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

The Frechet-Hoeffding Lower Bound
P

The Product (Independence) Copula
taildepCOP

The Upper and Lower Tail Dependency Parameters of a Copula
isCOP.LTD

Is a Copula Left-Tail Decreasing
derCOP2

The Numeric Derivative of a Copula
EMPIRgridder2

Derivatives of the Grid of the Bivariate Emprical Copula
EMPIRqua.regress

Derivatives of the Grid of the Bivariate Emprical Copula
wolfCOP

The Schweizer and Wolff's Sigma of a Copula
EMPIRgridderinv2

Derivatives of the Grid of the Bivariate Emprical Copula
derCOP

The Numeric Derivative of a Copula
med.regressCOP

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

The Gini's Gamma of a Copula
EMPIRgrid

Grid of the Bivariate Emprical Copula
EMPIRcopdf

Dataframe of the Bivariate Emprical Copula
COP

The Copula
med.regressCOP2

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

Simulate an Empirical Copula
M

The Frechet-Hoeffding Upper Bound
rhoCOP

The Spearman's Rho of a Copula
qua.regressCOP2

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

Derivatives of the Grid of the Bivariate Emprical Copula
EMPIRsimv

Simulate an Empirical Copula For a Fixed Value of U
simCOPmicro

Simulate a V from an U through a Copula by Numerical Derivative Method
simCOP

Simulate a Copula by Numerical Derivative Method
diagCOP

The Diagonals of a Copula
PlackettPlackettNP

Parameters and L-comoments of a Composition of Two Plackett Copulas
surCOP

The Survival Copula
lcomoms2.ABcop2parameter

Convert L-comoments to Parameters of Compositions of Two 2-parameter Copulas
EMPIRmed.regress

Derivatives of the Grid of the Bivariate Emprical Copula
lcomoms2.ABKGcop2parameter

Convert L-comoments to Parameters of Compositions of Two 2-parameter Copulas
composite2COP

Composition of Two Copulas
isCOP.RTI

Is a Copula Right-Tail Increasing
PSP

The ratio of the Product Copula to Summation minus Product Copula
coCOP

The Co-Copula
COPinv

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

The Bivariate Empirical Copula
derCOPinv

The Inverse of a Numeric Derivative for V with respect to U of a Copula
simcomposite3COP

Simulation of a Composited Copula
PLACKETTsim

Direct Simulation of a Plackett Copula
PLACKETTpar

Estimate the Parameter of the Plackett Copula
tauCOP

The Kendall's Tau of a Copula
blomCOP

The Blomqvist's Beta of a Copula
qua.regressCOP

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

Extended Composition of Two Copulas
EMPIRmed.regress2

Derivatives of the Grid of the Bivariate Emprical Copula
N4212cop

The Copula of Equation 4.2.12 of Nelson's Book
derCOPinv2

The Inverse of a Numeric Derivative for U with respect to V of a Copula
PLACKETTcop

The Plackett Copula
duCOP

The Dual of a Copula
composite1COP

Composition of a Single Symmetric Copula
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
simcompositeCOP

Simulation of a Composited Copula
COPinv2

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

The Sections or Derivative of Sections of a Copula
EMPIRgridder

Derivatives of the Grid of the Bivariate Emprical Copula