Skip to content
Prev 23702 / 29559 Next

gstat now uses Lapack / failing cokriging

On 17/11/15 18:14, Bruin, Sytze de wrote:
Building upon your earlier example,

predict(g, SpatialPoints(data.frame(x=450, y=350)), debug = 32)

gives you the generalized covariance matrix that is used for the
cokriging, which I looked at. gstat computes generalized covariances as
C(0)-gamma(h) with C(0) = max(0, sum of the positive sill values),
instead of the sill of all sill values. If one of the sill components is
negative, this matters.

I looked in the Ver Hoef & Cressie 1993 paper, but couldn't find out
which one is right. Maybe Gerard can also take a look at it; the fix
would be trivial.