Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

copula-class

Mother Classes "Copula", etc of all Copulas in the Package


Description

A copula is a multivariate distribution with uniform margins. The virtual class "Copula" is the mother (or “super class”) of all copula classes in the package copula which encompasses classes of the former packages nacopula and copula.

The virtual class "parCopula" extends "Copula" and is the super class of all copulas that can be fully parametrized and hence fitted to data. For these, at least the dim() method must be well defined.

The virtual class "dimCopula" extends "Copula" and has an explicit slot dimension, with corresponding trivial dim() method.

The virtual class "copula" extends bot "dimCopula" and "parCopula" and is the mother of all copula classes from former package copula. It has set of slots for (the dimension and) parameter vector, see below.

The virtual class "xcopula" extends "parCopula" and contains a slot copula; an (“actual”) class example are the rotated copulas, rotCopula.

Objects from the Class

Objects are typically created by are by tCopula(), evCopula(), etc.

Slots

Class "dimCopula" and its subclasses, notably "copula", have a slot

dimension:

an "integer" (of length 1), the copula dimension d.

Class "copula" (and its subclasses) have additional slots

parameters:

numeric vector of parameter values, can be NA (i.e., NA_real_).

param.names:

"character" vector of parameter names (and hence of the same length as parameters).

param.lowbnd:

lower bounds for the parameters, of class "numeric".

param.upbnd:

upper bounds for the parameters, of class "numeric".

fullname:

deprecated; object of class "character", family names of the copula.

Warning

This implementation is still at the experimental stage and is subject to change during the development.

Note

The "copula" class is extended by the evCopula, archmCopula, and ellipCopula classes. Instances of such copulas can be created via functions evCopula, archmCopula and ellipCopula.

"plackettCopula" and fgmCopula are special types of copulas which do not belong to either one of the three classes above.

See Also

Help for the (sub)classes archmCopula, ellipCopula, evCopula, and fgmCopula.

The Archimedean and nested Archimedean classes (from former package nacopula), with a more extensive list of slots (partly instead of methods), acopula, and nacopula.

Examples

hc <- evCopula("husler", 1.25)
dim(hc)
smoothScatter(u <- rCopula(2^11, hc))
lambda   (hc)
tau (hc)
rho(hc)
str(hc)

copula

Multivariate Dependence with Copulas

v1.0-1
GPL (>= 3) | file LICENCE
Authors
Marius Hofert [aut] (<https://orcid.org/0000-0001-8009-4665>), Ivan Kojadinovic [aut] (<https://orcid.org/0000-0002-2903-1543>), Martin Maechler [aut, cre] (<https://orcid.org/0000-0002-8685-9910>), Jun Yan [aut] (<https://orcid.org/0000-0003-4401-7296>), Johanna G. Nešlehová [ctb] (evTestK(), <https://orcid.org/0000-0001-9634-4796>), Rebecca Morger [ctb] (fitCopula.ml(): code for free mixCopula weight parameters)
Initial release
2020-12-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.