set.seed(123)
sample <- rcylcop(100, cyl_rect_combine(copula::frankCopula(2)))
fit_cylcop_cor(cyl_rect_combine(copula::frankCopula()),
theta = sample[,1],
x = sample[,2],
method = "tau"
)
fit_cylcop_cor(cyl_rect_combine(copula::frankCopula()),
theta = sample[,1],
x = sample[,2],
method = "mi_cyl",
n = 100
)
fit_cylcop_cor(cyl_rect_combine(copula::claytonCopula()),
theta = sample[,1],
x = sample[,2],
method = "tau"
)
fit_cylcop_cor(cyl_quadsec(), theta = sample[,1], x = sample[,2], method = "mi_cyl")
fit_cylcop_cor(cyl_quadsec(), theta = sample[,1], x = sample[,2], method = "cor_cyl")
fit_cylcop_cor(cyl_quadsec(),
theta = sample[,1],
x = sample[,2],
method = "cor_cyl",
n = 100,
acc = 0.001
)
optCor(cyl_quadsec(),
theta = sample[,1],
x = sample[,2],
method = "mi_cyl")
Run the code above in your browser using DataLab