## Not run:
# # load data set
# data(worldindices)
# d = dim(worldindices)[2]
#
# # select the C-vine families and parameters
# cvine = CDVineCopSelect(worldindices,c(1:6),type="CVine")
#
# # select the D-vine families and parameters
# dvine = CDVineCopSelect(worldindices,c(1:6),type="DVine")
#
# # compare the two models based on the data
# vuong = CDVineVuongTest(worldindices,1:d,1:d,cvine$family,dvine$family,
# cvine$par,dvine$par,cvine$par2,dvine$par2,
# Model1.type=1,Model2.type=2)
# vuong$statistic
# vuong$statistic.Schwarz
# vuong$p.value
# vuong$p.value.Schwarz
# ## End(Not run)
Run the code above in your browser using DataLab