# See Note section of vuongCOP() for an extended discussion of copula inference
Tau <- 0.6410811; para <- GHcop(tau=Tau)$para # This Tau is from a situation of
# two river tributaries. These three L-comoments with univariate L-moments on the
T2 <- c(1, 0.79908960, 0.79908960, 1) # diagonals are derived from those river
# tributaries, which come together.
T3 <- c(0, -0.04999318, 0.07689082, 0)
T4 <- c(0, 0.01773833, 0.04756257, 0) # Is the Ho:GHcop rejectable?
LCOM <- list(T2=matrix(T2, nrow=2), T3=matrix(T3, nrow=2), T4=matrix(T4, nrow=2))
set.seed(30312)
ZZ1 <- lcomCOPpv(75, LCOM, cop=GHcop, para=para, repcoe=2000, larsimn=0)
print(ZZ1)
set.seed(30312)
ZZ2 <- lcomCOPpv(75, LCOM, cop=GHcop, para=para, repcoe=100, larsimn=2E4, larsimrep=10)
print(ZZ2)
# The results here suggest that the GHcop is not rejectable.
Run the code above in your browser using DataLab