# NOT RUN {
set.seed(1234)
# Observed coordinates
n <- 100
coords <- cbind(runif(n),runif(n))
# Spatial knots
knots <- expand.grid(seq(-0.2,1.2,length=5),seq(-0.2,1.2,length=5))
# Distance matrix
knots.dist <- as.matrix(pdist(coords,knots))
adjust.sigma2(knots.dist,0.1,2)
# }
Run the code above in your browser using DataLab