v <- runif(1)
t <- runif(1)
derCOPinv2(cop=W,v,t)
derCOPinv2(cop=P,v,t)
derCOPinv2(cop=M,v,t)
derCOPinv2(cop=PSP,v,t)
# Simulate 1000 values from product (independent)
# copula
plot(c(0,1),c(0,1),type="n")
for(i in 1:1000) {
v <- runif(1); t <- runif(1)
u <- derCOPinv2(cop=P,v,t)
points(u,v,cex=0.5,pch=16)
}
# Now simulate 1000 from the PSP copula and note
# the lower tail dependence, but absence of upper
# tail dependence.
for(i in 1:1000) {
v <- runif(1); t <- runif(1)
u <- derCOPinv2(cop=PSP,v,t)
points(u,v,cex=0.5,pch=16,col=2)
}
Run the code above in your browser using DataLab