Skip to content
Prev 9017 / 29559 Next

Best distance for a semi-variogram calculation

General practitioner rule: the half of the squared domain diagonal
That is fine. Maybe you need to remove not a linear trend, but a
polynomial one instead (that is a linear model of a combination of the
higher order of the coordinates).
Yours is a very easy example :)

  > sqrt(2)*300/2
  [1] 212.1320

That should be the maximum lag distance at which it makes sense to
calculate the experimental variogram.
If I understand correctly the form of the empirical semi-variogram,
this can be an "hole effect", which you get for example in stratified
or periodic fields.
Are you calculating directional variograms, or isotropic? Look at the
image() or contour plot of the residuals, do you see stratifications
(= bands) or evident anisotropies?
Remember the special case of linear model of variogram: it is
unbounded, never reaching a sill. It actually means that the variance
of underlying random function is not stationary, but varies in space;
in this case the covariance of the RF is not defined, and this is not
an order-2 stationary function, but a IRF-0.
Inferring the variogram model from an experimental one can be tricky.
As I mentioned, try directional variograms. You can also try to play
around with the number of lags, as in seq(0,212,length=12) and
seq(0,212,length=8), for example.
"The spherical model is the geostatistician's best friend" :)
First try to observe the features of your field, then try to model
those features after opportune manipulation (trend filtering,
considering anisotropy and so on). Only after those step you can think
of "complicated" variogram model, like the nested
linear+hole+nugget+spherical.

Good luck,

Scion