The test statistic is defined in the second reference. An approximate p-value for the test statistic is obtained by means of a multiplier technique.
exchEVTest(x, N = 1000, estimator = "CFG", derivatives = "Cn", m = 100)
"CFG"
or "Pickands"
; see Genest and Segers (2009)."An"
or "Cn"
.
The former should be used under the assumption of extreme-value
dependence. The latter is faster; see the seconKojadinovic, 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), 1--20.
exchTest
, gofCopula
.## Do these data come from exchangeable copulas?
exchEVTest(rCopula(200, gumbelCopula(3)))
exchEVTest(rCopula(200, claytonCopula(3)))## Creating asymmetric data
rKhoudraji <- function(cop,n,a=0.6,b=0.95)
{
u <- rCopula(n, cop)
v <- matrix(runif(2*n),n,2)
cbind(pmax(u[,1]^(1/a),v[,1]^(1/(1-a))),
pmax(u[,2]^(1/b),v[,2]^(1/(1-b))))
}
exchEVTest(rKhoudraji( gumbelCopula(3),200))
exchEVTest(rKhoudraji(claytonCopula(3),200))
Run the code above in your browser using DataLab