Ordinary Kriging in R
Ordinary Kriging in R
library(geoR);library(fields);library(maps)
#Perform ordinary Kriging (value of cov.pars and nugget are copied from mle output):
pred<-krige.conv(data=PM,coords=s,locations=sp,
krige=krige.control(cov.model="exponential",
cov.pars=c(14.73,6.144),
nugget=4.299))
pred$predict[!inCA]<-NA
pred$krige.var[!inCA]<-NA
16
Parameters of the spatial component:
14
correlation function: exponential
(estimated) partial sill = 14.73
38
12
(estimated) range parameter = 6.144
locs[, 2]
10
8
(estimated) nugget = 4.299
6
34
locs[, 1]
40
3.4
16
3.2
14
38
38
3.0
12
2.8
sp2
sp2
10
36
36
2.6
8
6 2.4
34
34
4 2.2
2.0
-124 -122 -120 -118 -116 -124 -122 -120 -118 -116
sp1 sp1