Learn R Programming

The cort package provides S4 classes and methods to fit several copula models:

  • The classic empirical checkerboard copula and the empirical checkerboard copula with known margins, see Cuberos, Masiello and Maume-Deschamps (2019) are proposed. These two models allow to fit copulas in high dimension with a small number of observations, and they are always proper copulas. Some flexibility is added via a possibility to differentiate the checkerboard parameter by dimension.

  • The last model consist of the implementation of the Copula Recursive Tree algorithm, aka. CORT, including the localised dimension reduction, which fits a copula by recursive splitting of the copula domain, see Laverny, Maume-Deschamps, Masiello and Rullière (2020).

  • We finally provide an efficient way of mixing copulas, allowing to bag the algorithm into a forest, and a generic way of measuring d-dimensional boxes with a given copula.

Installation

cort is Now on CRAN! You can install the stable version with:

install.packages("cort")

The upstream development version can also be installed with :

devtools::install_github("lrnv/cort")

Note that the installation from github will require the system to have a compiler:

  • Windows: Rtools
  • macOS: Xcode CLI
  • Linux: r-base-dev (debian)

The vignettes are quite expressive. They give a clear overview of what can be done with this package, how it is coded and why it is useful. Please read them for more details.

How to report bugs and get support

To report a bug, feel free to open an issue on the github repository. Support can also be provided through the same chanel if you need it.

How to contribute

Every contribution is welcome, on the form of pull requests on the github repository. For large modifications, please open an issue for discussions firsts. Concerning the naming convention, the CamelCase functions usually designate classes and constructors of these classes, and all other methods are in snake_case.

References

Cuberos A, Masiello E, Maume-Deschamps V (2019). “Copulas Checker-Type Approximations: Application to Quantiles Estimation of Sums of Dependent Random Variables.” Communications in Statistics - Theory and Methods, 1--19. ISSN 0361-0926, 1532-415X.

Laverny O, Maume-Deschamps V, Masiello E, Rullière D (2020). “Dependence Structure Estimation Using Copula Recursive Trees.” arXiv preprint arXiv:2005.02912

Copy Link

Version

Install

install.packages('cort')

Monthly Downloads

31

Version

0.3.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

December 1st, 2020

Functions in cort (0.3.2)

quad_prod_with_data

Quadratic product with data of the model (if it has one)
rCopula

Copula random generation
project_on_dims

Projection on smaller dimensions of a copula (if implemented)
pCopula

Copula cdf
kendall_func

Kendall function of a copula (if it has one)
loss

Loss of a copula estimation (if the model has one)
quad_prod

Quadratic product of two copulas (if they have one)
quad_norm

Quadratic norm of the model (if it has one)
cbCopula-Class

Checkerboard copulas
impossible_data

Dataset impossible_data
vCopula

Copula volume on hyper-boxes
recoveryourself_data

Dataset recoveryourself_data
funcdep_data

Dataset funcdep_data
ConvexCombCopula-Class

Convex Combination of copulas.
biv_tau

Kendall's tau matrix of a copula
Cort-Class

Cort copulas
biv_rho

Spearman's rho matrix of a copula
dCopula

Copula density
cbkmCopula-Class

Checkerboards with known margins
CortForest-Class

Bagged Cort copulas
constraint_infl

Constraint influence of the model (if it has one)
clayton_data

Dataset clayton_data