# Joe (2015, p. 237, table 5.2)
# The Gumbel-Hougaard copula and Plackett copula below each have a Kendall's tau
# of about 0.5. Joe (2015) lists in the table that Jeffrey's divergence is about
# 0.110 and the Kullback-Leibler sample size is 133. Joe (2015) does not list
# the parameters for either copula, just that for tau = 0.5.
KL <- kullCOP(cop1=GHcop, para1=2, cop2=PLACKETTcop, para2=11.40484)
# Reports Jeffrey's divergence = 0.1087776
# Kullback-Leibler sample size = 132
# using the default open set for the nested integrations. The closed set [0,1]
# causes integral divergence error for the Plackett copula.
# Joe (2015, p. 237, table 5.3)
# The Gumbel-Hougaard copula and Plackett copula below each have a Spearman's rho
# of about 0.5. Joe (2015) lists in the table that Jeffrey's divergence is about
# 0.063 and the Kullback-Leibler sample size is 210. Joe (2015) does not list
# the parameters for either copula, just that for rho = 0.5.
KL <- kullCOP(cop1=GHcop, para1=1.541071, cop2=PLACKETTcop, para2=5.115658,
del=0.0002, deluv=0.00001)
# Reports Jeffrey's divergence = 0.06057848
# Kullback-Leibler sample size = 207
# using the default open set for the nested integrations. The closed set [0,1]
# causes integral divergence error for the Plackett copula. Adjustments are made
# to the del for the numerical integrations and the deluv of the rectangular
# probability densities. Joe (2015) likely did the numerical integrations using
# analytical solutions to the probability densities and not rectangular
# approximations as used in this package by the densityCOP() function.
Run the code above in your browser using DataLab