Last chance! 50% off unlimited learning
Sale ends in
BiCopGofTest(u1, u2, family, par=0, par2=0, method="white", max.df=30, B=100)
0
= independence copula
1
= Gaussian copula
2
= Student t copula (t-copula) (only for method = "white"
; see details)
3
= Clayton copula
<par2 = 0
.max.df = 30
)."white"
= goodness-of-fit test based on White's information matrix equality (default)
"kendall"
= goodness-of-fit test based on Kendall's processB = 100
).
For B = 0
only the the test statistics are returned.
WARNING: If B
is chosen too large, computations will take very long.method = "white"
:method = "kendall"
B > 0
).B > 0
).method="white"
:
This goodness-of fit test uses the information matrix equality of White (1982) and was investigated by Wanling and Prokhorov (2011).
The main contribution is that under correct model specification the Fisher Information can be equivalently calculated as minus the expected Hessian matrix or as the expected outer product of the score function.
The null hypothesis is
method = "kendall"
:
This copula goodness-of-fit test is based on Kendall's process as investigated by Genest and Rivest (1993) and Wang and Wells (2000).
For rotated copulas the input arguments are transformed and the goodness-of-fit procedure for the corresponding non-rotated copula is used.BiCopDeriv2
, BiCopDeriv
, BiCopIndTest
, BiCopVuongClarke
# simulate from a bivariate Clayton copula
simdata = BiCopSim(300,3,2)
u1 = simdata[,1]
u2 = simdata[,2]
# perform White's goodness-of-fit test for the true copula
BiCopGofTest(u1,u2,family=3)
# perform Kendall's goodness-of-fit test for the Frank copula
BiCopGofTest(u1,u2,family=5)
# perform Kendall's goodness-of-fit test for the true copula
gof = BiCopGofTest(u1,u2,family=3,method="kendall")
gof$p.value.CvM
gof$p.value.KS
# perform Kendall's goodness-of-fit test for the Frank copula
gof = BiCopGofTest(u1,u2,family=5,method="kendall")
gof$p.value.CvM
gof$p.value.KS
Run the code above in your browser using DataLab