level.curvesCOP | R Documentation |
Compute and plot level curves or level sets of a copula for V
with respect to U
(Nelsen, 2006, pp. 12–13). The level curves at levels t \mapsto [0+\Delta t, 1-\Delta t, \Delta t]
are defined for U \mapsto [0+\Delta u, 1-\Delta u, \Delta u]
by
t \mapsto \mathbf{C}(u=U, v)\mbox{,}
and solving for v
. Plotting is provided by this function because level curves are such an important visual attribute of a copula and highly useful for pedagogic purposes. The above equation is implemented by the inverse of a copula using COPinv
.
level.curvesCOP(cop=NULL, para=NULL, ploton=TRUE, lines=TRUE,
plotMW=FALSE, ramp=TRUE, delu=0.001, delt=0.10,
getlevel=NULL, silent=TRUE, ...)
cop |
A copula function; |
para |
Vector of parameters or other data structure, if needed, to pass to the copula; |
ploton |
A logical to toggle on the plot; |
lines |
A logical to toggle calls to the |
plotMW |
A logical to toggle to use the |
ramp |
A logical to toggle whether the level curves are ramped in thickness according to the probability of the line; |
delu |
The increment for |
delt |
The increment |
getlevel |
If defined, then it is inserted into the sequence of levels |
silent |
The argument of the same name given over to |
... |
Additional arguments to pass to the |
Typically no values are returned because this function is used for its side effects, but the arguments can be such that the \{u, v\}
for \mathbf{C}(u,v) = t
are returned within an R list
.
W.H. Asquith
Nelsen, R.B., 2006, An introduction to copulas: New York, Springer, 269 p.
COPinv
, level.curvesCOP2
, level.setCOP
, joint.curvesCOP
## Not run:
level.curvesCOP(cop=M, para=NULL, delt=0.02) # Upper bounds copula
## End(Not run)
## Not run:
D <- level.curvesCOP(cop=P, getlevel=0.56)
str(D) # empty
D <- level.curvesCOP(cop=P, getlevel=0.5)
str(D) # contains stuff
D <- level.curvesCOP(cop=PSP, getlevel=0.8)
str(D) # contains stuff
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.