computeMatrixSignPairs {CondCopulas} | R Documentation |
Compute the matrix of signs of pairs
Description
Compute a matrix giving the concordance or discordance of each pair of observations.
Usage
computeMatrixSignPairs(vectorX1, vectorX2, typeEstCKT = 4)
Arguments
vectorX1 |
vector of observed data (first coordinate) |
vectorX2 |
vector of observed data (second coordinate) |
typeEstCKT |
if typeEstCKT = 2 or 4, compute the matrix whose term (i,j) is :
where For |
Value
an n * n
matrix with the signs of each pair
of observations.
Examples
# We simulate from a conditional copula
N = 500
Z = rnorm(n = N, mean = 5, sd = 2)
conditionalTau = 0.9 * pnorm(Z, mean = 5, sd = 2)
simCopula = VineCopula::BiCopSim(N = N , family = 3,
par = VineCopula::BiCopTau2Par(1 , conditionalTau) )
matrixPairs = computeMatrixSignPairs(vectorX1 = simCopula[,1],
vectorX2 = simCopula[,2])
[Package CondCopulas version 0.1.3 Index]