set <- level.setCOP2(cop=N4212cop, para=3.1, getlevel=0.75)
# This longer runtime example is expected to throw some uniroot() errors during
# execution of COPinv(). One can see that a few level curves are truncated on the right.
level.curvesCOP2(cop=N4212cop, para=3.1, delv=0.001, delt=0.02)
lines(set$U, set$V, col=2, lwd=2) # manually draw the 75th percentile
set <- level.setCOP2(cop=N4212cop, para=3.1, getlevel=0.17, lines=TRUE, col=4, lwd=4)
# Notice the change in the lines argument and using levelsetCOP2 to draw.
# Perhaps to fix the errors COPinv() should be further developed?
Run the code above in your browser using DataLab