Skip to content
Prev 19989 / 29559 Next

variogram model with gstat

Try:

library(sp)
demo(meuse,ask=F)
library(gstat)
m = meuse$zinc
meuse$m = (meuse$zinc - mean(meuse$zinc))/sd(meuse$zinc)
var(meuse$m)
# [1] 1
variogram(m~1, meuse, cutoff=1e6)$gamma
# [1] 1

you see that the semivariogram averaged over ALL distances equals the
variance of the variable. What you look at is (for good reasons) the
semivariogram computed up to a certain distance.

Hth,
On 12/11/2013 06:17 PM, Moshood Agba Bakare wrote: