# a hac object is created
Matrix = matrix(c(1.988, 0, 0, 0, 3.234, 4.567, 0, 0, ~X1, ~X2, ~X3, ~X4),
nrow = 3, byrow = TRUE)
Object = hac(HAC_GUMBEL, Matrix)
# do not forget to make the plot window as big as possible
plot(Object, col = "red", fg = "red", index = TRUE)
# the same procedure works for an estimated object
x = rHAC(1000, Object)
est.obj = estimate.copula(x, HAC_GUMBEL, method = ML)
# the result can be properly presented without any effort
plot(est.obj, index = TRUE, digits = 5)
# as explained, ylim should be adjusted for AC
ac_model = hac(type = AC_GUMBEL, X = 3, dim = 3)
plot(ac_model, ylim = c(-0.4, 1.25), l = 1, h = 0.35)
Run the code above in your browser using DataLab