Description Usage Arguments Details Value References Examples
compute the density of Clayton copula given the two individual variables.
1 |
u |
a vector containing cumulative densities for one replicate data. |
v |
a vector containing cumulative densities for the other replicate data. |
beta |
the single paramter for the Clayton copula. It has a range of (0, ∞), perfect dependence is archieved if β approximates ∞, while β approximates 0 implies no dependence. |
The formula for the density of bivariate Clayton copula is:
c(u, v | β) = (1+β)*((u*v)^(-1-β))*(u^(-β)+v^(-β)-1)^(-1/β-2)
where β > 0 in our application.
dclayton calculates the density of Clayton copula given the cumulative densities of
two random variables and the parameter of Clayton copula. The empirical cumulative densities
of the two random variables could be obtained using the function empdist()
. Invalid arguments
will result in value NaN
.
Nelsen, R. (2006). An Introduction to Copula, Second Edition, Springer. G. G. Venter (2001). Tails of copulas. In Proceedings ASTIN Washington, USA, pages 68-113.
1 2 3 4 5 6 7 8 | data(Chipseq_TF)
x1 <- Chipseq_TF[,1]
x2 <- Chipseq_TF[,2]
U=empdist(x1, x2)
u <- U[,1]
v <- U[,2]
beta <- 2
dclayton(u, v, beta)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.