Last chance! 50% off unlimited learning
Sale ends in
Perform copula multiplication (so-called “derCOP
and derCOP2
) of the other two. Nelsen (2006, p. 245) lists several identities of the P
), lower bound (W
), and upper bound (M
) copulas:
surCOP
). The
For other descriptions and computations of copula combination are possible using the copBasic package, see convex2COP
, composite1COP
, composite2COP
, and composite3COP
.
prod2COP(u,v, cop1=NULL, para1=NULL, cop2=NULL, para2=NULL, para=NULL,
interval=NULL, ...)
Nonexceedance probability
Nonexceedance probability
The asCOP
;
Vector of parameters or other data structures for
The asCOP
;
Vector of parameters or other data structures for
An R list
that can take the place of the cop1
, para1
, cop2
, and para2
arguments. These four will be populated from same named elements of the list
, and if the other four arguments were specified through the function interface, these are silently ignored;
An optional interval for the above integral. The default is interval=
c(lo, 1-lo)
for say lo=.Machine$double.eps
; and)
Additional arguments to pass to the copulas.
Value(s) for the copula are returned.
Nelsen, R.B., 2006, An introduction to copulas: New York, Springer, 269 p.
COP
, convex2COP
, composite1COP
,
composite2COP
, composite3COP
# NOT RUN {
# Product P * N4212 ---> P (by identity)
u <- c(0.41, 0.87); v <- c(0.13,0.35)
prod2COP(u,v, cop1=P, cop2=N4212cop, para1=NA, para2=2.12) # 0.0533 and 0.3045
COP(u,v, cop=P) # 0.0533 and 0.3045
# }
# NOT RUN {
# }
# NOT RUN {
para <- list(cop1=PLcop, para1=0.19, cop2=PLcop, para2=34.5)
UV <- simCOP(n=1000, cop=prod2COP, para=para)
# This is large simulation run (with a lot of numerical operations) is expected
# at least for the Placketts and chosen parameters to trigger one or more NAs
# from derCOPinv(). The simCOP() function simply continues on with ignoring the
# solution or lack thereof for certain combinations, and simCOP() will report how
# many of the simulated values for sample of size n were computed. For example,
# for one n=1000, some 965 simulated values were returned. The Spearman Rho is
rhoCOP(cop=prod2COP, para=para) # -0.4271195 (theoretical)
rhoCOP(para=UV, as.sample=TRUE) # -0.4284223 (the test n=1000 --> n=965 sample)
# }
Run the code above in your browser using DataLab