[GRASS-stats] gstat.cv error

Edzer Pebesma edzer.pebesma at uni-muenster.de
Thu Sep 1 14:22:20 EDT 2011



On 09/01/2011 08:09 PM, Olavo Borges D'Antonio wrote:
> Hello,
> 
> I was following the sample in the grass book and I'm getting a error
> message using gstat.cv.
> message is:
> 
>> pe1 <- gstat.cv(t2, debug.leve=0, random=FALSE)$residual
> Error in unique(fold) : object 'fold' not found

This is a programming error. You can resolve it with

pe1 <- gstat.cv(t2, debug.level=0, random=FALSE, nfold=nrow(x))

where you replace x with the data set used to create t2 (or,
alternatively, t2$data[[1]]$data )

Hth,
> 
> I appreciate if anyone could show me where is the error.
> 
> thanks.
> 

-- 
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 grass-stats mailing list