Skip to content
Prev 7673 / 29559 Next

How to do cross validation for universal krigingin Gstat

Hi Edzer,

Thanks for your quick reply. The primary variable of my interest is temperature.  I tried to use krige.cv before, but it did not work. The problem arises because the temperature and impervious surface are from two files. For universal kriging, the krige function has a parameter called "newdata" which handles the second data file. However, the krige.cv does not include a "newdata" parameter according to the help document. There is a error when I specified two datasources when I was running krige.cv in specifying a newdata source:
Error in function (classes, fdef, mtable)  : 
  unable to find an inherited method for function "krige.cv", for signature "formula", "missing"

I tried to delete parameters names such as 'data' and 'newdata' according to your response to a related problem before in the R-sig-Geo archives. However, it still did not work.

Thanks,
Kai Zhang



======= 2010-02-21 11:51:45 You wrote =======