[R-sig-Geo] Universal Kriging with factor covariate
Edzer Pebesma
edzer.pebesma at uni-muenster.de
Wed Feb 9 21:06:45 CET 2011
krige() supports the use of factors. Mailing the error message without
the command that generated it doesn't help us forward. Most useful would
be a small reproducable example.
On 02/09/2011 08:32 PM, piero campa wrote:
>
> 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
>
--
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster
Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
8333081, Fax: +49 251 8339763 http://ifgi.uni-muenster.de
http://www.52north.org/geostatistics e.pebesma at wwu.de
More information about the R-sig-Geo
mailing list