[R-sig-Geo] Cross-validaton with "geoR" for ordinary least squares fit
ToNoY
tan.afreebird at gmail.com
Mon May 20 19:30:59 CEST 2013
I've fitted a model using "geoR" package of 'R' as follows:
#ordinary least squares fit
ini.vals <- expand.grid(seq(20000,50000,l=5), seq(0.01,0.1,l=5))
ols = variofit(vario.mydata, ini=ini.vals, fix.nug=F, wei="equal")
summary(ols)
vario.mydata=variog(mydata, max.dist=0.123)
plot(vario.mydata,main="OLS")
lines(ols,lty=2,col=3, lw=2)
The summary/plot of the model is fine. But when I want to cross-validate my
model, 'R' throws me the following error which I know not beans about.
Error in if (length(data) != n) stop(paste("incompatible sizes: coords (",
: argument is of length zero
Any suggestions/idea why?
--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Cross-validaton-with-geoR-for-ordinary-least-squares-fit-tp7583611.html
Sent from the R-sig-geo mailing list archive at Nabble.com.
More information about the R-sig-Geo
mailing list