Message-ID: <4D52F3D5.8080307@uni-muenster.de>
Date: 2011-02-09T20:06:45Z
From: Edzer Pebesma
Subject: Universal Kriging with factor covariate
In-Reply-To: <1297279939135-6009230.post@n2.nabble.com>
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