Learn R Programming

copBasic (version 1.5.1)

med.regressCOP2: Perform Median Regression using a Copula by Numerical Derivative Method for U with respect to V

Description

Perform median regression of a copula by numerical derivatives of the copula. See the documentation for qua.regressCOP2 for mathematical details.

Usage

med.regressCOP2(V=seq(  .Machine$double.eps^0.5,
                      1-.Machine$double.eps^0.5, by=0.01),
                cop=NULL, para=NULL, ...)

Arguments

V
A vector of $v$ nonexceedance probabilities,
cop
A copula function,
para
Vector of parameters or other data structure, if needed, to pass to the copula,
...
Additional arguments to pass.

Value

  • A data frame of the regressed probabilities of $U$ and provided $V$ values is returned.

References

Nelson, R.B., 2006, An introduction to copulas: New York, Springer, 269 p.

See Also

qua.regressCOP2

Examples

Run this code
theta <- 10
R <- med.regressCOP2(cop=PLACKETTcop, para=c(theta))
plot(R$U,R$V, type="l", lwd=5, lty=2, xlim=c(0,1), ylim=c(0,1))
lines((1+(theta-1)*R$V)/(theta+1),R$V, col=4)

theta <- 0.02
R <- med.regressCOP2(cop=PLACKETTcop, para=c(theta))
lines(R$U,R$V, lwd=5, lty=2)
lines((1+(theta-1)*R$V)/(theta+1),R$V, col=2)

Run the code above in your browser using DataLab