# Example here is just for Tn. For the example below, the PSP copula is radically
# different from the Gumbel-Hougaard copula and thus, the hatTn would be expected
# to be quite different from those of the Gumbel-Hougaard and certainly not too
# near to zero. The Bernstein extension to the empirical copula is CPU intensive.
samUV <- simCOP(n=40, cop=PSP, graphics=FALSE) # random sample
hatTau <- cor(samUV$U, samUV$V, method="kendall") # Kendall Tau
hatTn <- statTn(sampleUV, cop=GHcop, para=GHcop(tau=hatTau)$para,
ctype="bernstein") # approximate range 0.0141 -- 0.030
# hatTn in this case is cernby itself is somewhat uninformative and requires
# Monte Carlo to put an individual value into context.
Run the code above in your browser using DataLab