
Last chance! 50% off unlimited learning
Sale ends in
exchTest(x, N = 1000, m = 0)
m=0
, integration in the Cramér--von Mises
statistic is carried out with respect to the empirical copula; if
m > 0
, integration is carried out with respect to the Lebesgue
measure and m
specifies the size oKojadinovic, I. and Yan, J. (2012). A nonparametric test of exchangeability for extreme-value and left-tail decreasing bivariate copulas. The Scandinavian Journal of Statistics. In press.
Kojadinovic, I. and Yan, J. (2010). Modeling Multivariate Distributions with Continuous Margins Using the copula R Package. Journal of Statistical Software, 34(9), pages 1-20.
exchEVTest
, gofCopula
.## Do these data come from exchangeable copulas?
exchTest(rCopula(200, gumbelCopula(3)))
exchTest(rCopula(200, claytonCopula(3)))
## Creating asymmetric data
khoudraji <- function(cop,n,a=0.6,b=0.95)
{
u <- rCopula(n, cop)
v <- matrix(runif(2*n),n,2)
x <- cbind(pmax(u[,1]^(1/a),v[,1]^(1/(1-a))),
pmax(u[,2]^(1/b),v[,2]^(1/(1-b))))
x
}
exchTest(khoudraji(gumbelCopula(3),200))
exchTest(khoudraji(claytonCopula(3),200))
Run the code above in your browser using DataLab