# exponential covariance matrix ( marginal variance =1) for the ozone
#locations
out<- exp.cov( ozone$x, theta=100)
# out is a 20X20 matrix
out2<- exp.cov( ozone$x[6:20,],ozone$x[1:2,], theta=100)
# out2 is 15X2 matrix
# Kriging fit where the nugget variance is found by GCV
fit<- Krig( ozone$x, ozone$y, exp.cov, theta=100)
Run the code above in your browser using DataLab