set.seed(1234)
sample <- rcylcop(100,cyl_cubsec(0.1, 0.1))
opt_cop <- fit_cylcop_ml(copula = cyl_quadsec(),
theta = sample[,1],
x = sample[,2],
parameters = "a",
start = 0
)$copula
cramer_vonmises(opt_cop,
theta = sample[,1],
x = sample[,2],
n_bootstrap=5)
Run the code above in your browser using DataLab