u <- 0.26; v <- 0.55 # nonexceedance probabilities
up <- 1 - u; vp <- 1 - v # exceedance probabilities
surCOP(up, vp, cop=PSP, exceedance=TRUE) # 0.4043928
surCOP(u, v, cop=PSP, exceedance=FALSE) # 0.4043928
surfuncCOP(u, v, cop=PSP) # 0.4043928
# All three examples show joint prob. that U > u and V > v.
# A survival copula is a copula so it increases to the upper right with increasing
# exceedance probabilities. Let us show that by hacking the surCOP function into
# a copula for feeding back into the algorithmic framework of copBasic.
UsersCop <- function(u,v, para=NULL) {
afunc <- function(u,v, theta=para) { surCOP(u, v, cop=N4212cop, para=theta)}
return(asCOP(u,v, f=afunc)) }
image(gridCOP(cop=UsersCop, para=1.15), col=terrain.colors(20),
xlab="U, EXCEEDANCE PROBABILITY", ylab="V, EXCEEDANCE PROBABILITY")
Run the code above in your browser using DataLab