[Gstat-info] (no subject)
Paul Hiemstra
p.hiemstra at geo.uu.nl
Sat May 23 23:09:54 CEST 2009
Hi,
You don't give us a lot to work with. We have no idea what is present in
the database object, what is present in the model5.out. Please give a
piece of code that reproduces you error on our machine, preferably with
a built in dataset such as the meuse dataset. Please also upgrade R and
all relevant packages to the latest version. The example below works for
me...
library(gstat)
data(meuse)
coordinates(meuse) = ~x+y
m <- vgm(.59, "Sph", 874, .04)
dum = krige.cv(log(zinc)~1, meuse, model = m)
cheers,
Paul
giuseppeform at libero.it schreef:
> Dear all, I reintroduce my question: i want to do crss validation, i Have my
> data Cd concentration of Cd, i have my variogram model model5.out, i have
> dataset database which contains coordinates and five metal's concentrations of
> which Cd is a column
>
> I wrote:
>
> krige.crossv <-krige.cv(Cd~1,data=database,
> model=model5.out)
>
> I have this error:
>
> Warning: singular model in variogram
> fit
> [using ordinary kriging]
> Errore in function (classes, fdef, mtable) :
>
> unable to find an inherited method for function "krige.cv", for signature
> "formula", "missing"
>
>
> can you help me?
> _______________________________________________
> Gstat-info mailing list
> Gstat-info at geo.uu.nl
> http://mailman.geo.uu.nl/mailman/listinfo/gstat-info
>
--
Drs. Paul Hiemstra
Department of Physical Geography
Faculty of Geosciences
University of Utrecht
Heidelberglaan 2
P.O. Box 80.115
3508 TC Utrecht
Phone: +3130 274 3113 Mon-Tue
Phone: +3130 253 5773 Wed-Fri
http://intamap.geo.uu.nl/~paul
More information about the Gstat-info
mailing list