Description Usage Arguments Details Value Author(s) Examples
A function which get some common summary stats of a leave-one-out-cross-validation.
1 | LOOCV(Xvalid)
|
Xvalid |
The results from either the |
A quick function to to summarise the results of LOOCV.
RMSE |
Root mean square error of the LOOCV. |
ME |
Mean error of the LOOCV. |
thetaMean |
mean theta. |
thetaMedian |
median theta. |
Jason Lessels jlessels@gmail.com
1 2 3 4 5 6 7 8 9 | reml <- likfitRcpp(s100, ini=c(0.5, 0.5), fix.nug = FALSE, lik.met = "REML")
# Perform cross validation using gstat and geoR methods.
krige_data <- data.frame(data=s100$data, x=s100$coords[,1], y=s100$coords[,2])
model. <- vgm(psill=reml$sigmasq, "Exp", range=reml$phi, reml$nugget)
system.time(gstatXV <- krige.cv(formula=data~1, locations=~x+y, data=krige_data,model=model.))
system.time(geoRXV <- xvalid(s100, model=reml))
# Getting a quick summary of the cross validation results
LOOCV(geoRXV)
LOOCV(gstatXV)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.