moCopula-class {copula} | R Documentation |
Class "moCopula" of Marshall-Olkin Copulas
Description
The Marshall-Olkin copula class.
The (2-dimensional) "MO" copula with parameter
is (i.e., its CDF is)
Consequently, the density is undefined on a curve (in ),
namely for the points
where two
expressions in the above
are equal,
. It is easy to see that that is equivalent to
Objects from the Class
Objects can be created by new("moCopula", ...)
but are
typically produced by moCopula(...)
.
Slots
dimension
:Numeric (scalar), the dimension of the copula.
exprdist
:a length two
expression
with expressions for the CDF and PDF of the copula.parameters
:numeric vector of two parameter values in
.
param.names
:"character"
vector of length two.param.lowbnd
:numeric vector of two values in
.
param.upbnd
:numeric vector of two values in
.
fullname
:(deprecated; do not use!)
Methods
Typical copula methods work, see "moCopula"
and use methods(class = "moCopula")
.
Extends
Class "moCopula"
extends class "copula"
directly.
References
Nelsen, R. B. (2006), An introduction to Copulas, Springer, New York.
See Also
moCopula
for constructing them;
copula-class
.
Examples
moCopula()@exprdist[["cdf"]] # a simple definition
methods(class = "moCopula")
contourplot2(moCopula(c(.1, .8)), pCopula, main= "moCopula((0.1, 0.8))")
Xmo <- rCopula(5000, moCopula(c(.2, .5)))
try( # gives an error, as there is no density (!):
loglikCopula(c(.1, .2), Xmo, moCopula())
)
plot(moCopula(c(.9, .2)), n = 10000, xaxs="i", yaxs="i",
# opaque color (for "density effect"):
pch = 16, col = adjustcolor("black", 0.3))