COPinv function is internally used by level.curvesCOP. A common misapplication that will puzzle the user is that the following call and error message are often seen:
COPinv(.2, .25, cop=PSP)
  Error in uniroot(func, interval = c(lo, 1), u = u, LHS = t, cop = cop,  :
    f() values at end points not of opposite sign
  [1] NA
This is a harmless error in the sense that COPinv is functioning properly. One can  not invert a copula for $u < t$ and for $u = t$ the $v = 1$ because of fundamental copula properties. Also because of fundamental theory involved, the author perceives that it is better to not silently trap the error but let errors cascade up the chain in a user's application.COPinv(cop=NULL, u, t, para=NULL, ...)COP,
         COPinv2,
         level.curvesCOPCOPinv(cop=N4212cop, para=2, u=0.5, t=0.2)Run the code above in your browser using DataLab