Description Usage Arguments Details Value References Examples
compute the density of Gumbel copula given the two individual variables, i.g. sequencing read counts.
1 | dgumbel(u, v, alpha)
|
u |
a vector containing cumulative densities for one replicate data. |
v |
a vector containing cumulative densities for the other replicate data. |
alpha |
the single paramter for the Gumbel copula. It has a range of (0, 1], perfect dependence is archieved if α approximates 0, while α = 0 implies no dependence. |
The formula for the distribution of bivariate Clayton copula is:
C(u, v | α) = exp(-((-log(u))^α+(-log(v))^α)^(1/α))
The formula for the corresponding density is:
c(u, v | α) = C(u, v | α)*(u*v)^(-1)*((-log(u))^α+ (-log(v))^α)^(-2+2/α)*(log(u)*log(v))^(α-1)* (1+(α-1)*((-log(u))^α+(-log(v))^α)^(-1/α))
where 0 < α ≤ 0 in our application.
dgumbel calculates the density of Gumbel copula given the cumulative densities of two random
variables and the parameter of Gumbel 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]
alpha <- 2
dgumbel(u, v, alpha)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.