if (FALSE) {
model.list <- list('mean' = 0,
'std.dev' = formula( ~ 1 + cov_x + cov_y),
'scale' = formula( ~ 1 + cov_x + cov_y),
'aniso' = 0,
'tilt' = 0,
'smooth' = 3/2,
'nugget' = -Inf)
sample_index <- sample(1:dim(holes[[1]])[1],200)
coco_object <- coco(type = 'dense',
data = holes[[1]][sample_index, ],
locs = as.matrix(holes[[1]][sample_index,1:2]),
z = holes[[1]][sample_index, ]$z,
model.list = model.list)
optim_coco <- cocoOptim(coco_object,
boundaries = getBoundaries(coco_object,-3,3))
plotOptimInfo(optim_coco)
plot(optim_coco)
plot(optim_coco, type = 'ellipse')
plot(optim_coco, type = 'correlations', index = c(2,3,5))
summary(optim_coco,inv.hess = getHessian(optim_coco))
getEstims(optim_coco)
}
Run the code above in your browser using DataLab