Re: [R] Cross validation for Ordinary Kriging

2011-01-07 Thread Jon Olav Skoien
Pearl, The error suggests that there is something wrong with x2, and that there is a difference between the row names of the coordinates and the data. If you call str(x2) see if the first element of @coords is different from NULL, as this can cause some problems when cross-validating. If it

Re: [R] Cross validation for Ordinary Kriging

2011-01-07 Thread Jon Olav Skoien
On 1/7/2011 12:40 PM, Jon Olav Skoien wrote: Pearl, The error suggests that there is something wrong with x2, and that there is a difference between the row names of the coordinates and the data. If you call str(x2) see if the first element of @coords is different from NULL, as this can

[R] Cross validation for Ordinary Kriging

2011-01-06 Thread pearl may dela cruz
ear ALL, The last part of my thesis analysis is the cross validation. Right now I am having difficulty using the cross validation of gstat. Below are my commands with the tsport_ace as the variable: nfold - 3 part - sample(1:nfold, 69, replace = TRUE) sel - (part != 1) m.model - x2[sel, ]