Skip to content
Prev 10866 / 29559 Next

Universal Kriging with factor covariate

Hi list,
I am applying Universal Kriging (a.k.a. Regression-kriging, etc), and
whether I use a factor variable as covariate (to feed the linear regression
model by lm() call), I get this error:

Error in function (classes, fdef, mtable)  : 
  unable to find an inherited method for function "krige", for signature
"call", "SpatialPointsDataFrame"

The same is for krige.cv.
I managed to run UK by manually adding to my Spatial object explicitly the
dummy 0/1 variables for each category used in the formula of the regression
model; but I wonder if I am doing something wrong or actually the krige
method does not support factor covariates.

Thank you,
Piero Campalani