[R-sig-Geo] Cross validation for conditional Gaussian simulations

2009-12-11 Thread ageel bushara
Dear all, I have some soil moisture measurements distributed in the basin and I’m trying to find the best simulation method for my data through the cross validation. I started with the tutorial of Meuse dataset that implemented in gstat. In the case of predictions, the cros

Re: [R-sig-Geo] cross validation gstat

2009-02-24 Thread ONKELINX, Thierry
Edzer Pebesma Verzonden: maandag 23 februari 2009 20:32 Aan: dde...@sciborg.uwaterloo.ca CC: r-sig-geo@stat.math.ethz.ch Onderwerp: Re: [R-sig-Geo] cross validation gstat dde...@sciborg.uwaterloo.ca wrote: > Hi list, > A quick question regarding n-fold validation... > I've seen several

Re: [R-sig-Geo] cross validation gstat

2009-02-23 Thread van Etten, Jacob (IRRI)
...@sciborg.uwaterloo.ca Cc: r-sig-geo@stat.math.ethz.ch Subject: Re: [R-sig-Geo] cross validation gstat dde...@sciborg.uwaterloo.ca wrote: > Hi list, > A quick question regarding n-fold validation... > I've seen several papers suggest the LOOCV is too optimistic. Is > n-fold

Re: [R-sig-Geo] cross validation gstat

2009-02-23 Thread ddepew
Thanks Edzer, for some reason I had it in my head that n-fold was a variant of what you describe; an independent randomly selected set to "check" the fit if the model. I guess that's where I was heading with CV, sore form of relative assessment of how "good" the fitted variogram model was/is

Re: [R-sig-Geo] cross validation gstat

2009-02-23 Thread Edzer Pebesma
dde...@sciborg.uwaterloo.ca wrote: > Hi list, > A quick question regarding n-fold validation... > I've seen several papers suggest the LOOCV is too optimistic. Is > n-fold closer to a "true" validation? I don't think "true" validation exists; could you explain what it is? If you mean having a compl

[R-sig-Geo] cross validation gstat

2009-02-23 Thread ddepew
Hi list, A quick question regarding n-fold validation... I've seen several papers suggest the LOOCV is too optimistic. Is n-fold closer to a "true" validation? I am assuming that it uses the variogram that is constructed using ALL data, so my assumption is that the variogram is not re-fit for

Re: [R-sig-Geo] cross-validation

2008-02-08 Thread Marta Rufino
Excellent! It was exactly this what I meant. I also agree that it is not needed a function to calculate such simple stuff, but certainly would be desirable (and effective) to have it in the help file from krige.cv (to clarify the less statistically minded like myself :-)) I totally agree with

Re: [R-sig-Geo] cross-validation

2008-02-07 Thread Edzer Pebesma
Marta Rufino wrote: > Great! Hi Marta, I now have in the example section of gstat.cv help: # multivariable; thanks to M. Rufino: meuse.g <- gstat(id = "zn", formula = log(zinc) ~ 1, data = meuse) meuse.g <- gstat(meuse.g, "cu", log(copper) ~ 1, meuse) meuse.g <- gstat(meuse.g, model = vgm(1, "Sph

Re: [R-sig-Geo] cross-validation

2008-02-07 Thread Marta Rufino
Great! This works wonderfully...maybe would be nice if you add it to the example in the help page :-) Further comments in /CV/... from the gstat.cv output, which cross-validation measures should be considered when establishing the performance of kriging, in relation to other methods, for examp

Re: [R-sig-Geo] cross-validation

2008-02-07 Thread Edzer Pebesma
That was not the problem, the problem was that you used meuse.g instead of meuse.fit to pass on to gstat.cv. For meuse.g, you have perfect correlation between Cu and Zn, so that collocated observations (meaning a Zn and a Cu observation at each obs location) act as a duplicate in univarite krig

Re: [R-sig-Geo] cross-validation

2008-02-06 Thread Paul Hiemstra
Hi, You should check if you have duplicate observations, duplicate observations lead to a singular matrix. Use the function zerodist() to check where the observations are and remove.duplicates() to remove them. cheers, Paul Marta Rufino schreef: > Hello, > > yes, I know it is suppose to do it,

Re: [R-sig-Geo] cross-validation

2008-02-06 Thread Marta Rufino
Hello, yes, I know it is suppose to do it, but I could not find how, because it gives me an error... for example: require(gstat); require(lattice) data(meuse) coordinates(meuse) = ~x + y data(meuse.grid) gridded(meuse.grid) = ~x + y meuse.g <- gstat(id = "zn", formula = log(zinc) ~ 1, data = me

Re: [R-sig-Geo] cross-validation

2008-02-06 Thread Edzer Pebesma
Yes, Martha; function gstat.cv works on multivariable objects; do read it's documentation. Best regards, -- Edzer Marta Rufino wrote: > Dear list members, > > Is it possible to do cross-validation on multivariate kriging? > i.e. apply krige.cv to multivariate kriging in gstat? > > thank you very

[R-sig-Geo] cross-validation

2008-02-06 Thread Marta Rufino
Dear list members, Is it possible to do cross-validation on multivariate kriging? i.e. apply krige.cv to multivariate kriging in gstat? thank you very much, Best wishes, Marta ___ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/