View source: R/sloopoint.fun.R
sloopoint.fun | R Documentation |
This function plots the left-out point(s) of a spatial leave-one-out cross-validation (SLOO-CV) of one or several models running on INLA.
sloopoint.fun(points = points, test = test, rad = rad)
points |
= cbind of longitude and latitude of the observed points (full sample) |
test |
= cbind of longitude and latitude of the test point(s) |
rad |
= Numeric value giving the radius for the spatial buffer around left-out point's location |
## Not run: # sloopoint function dataframe<-data.frame(long=runif(100, -40.0, 40.0),lat=runif(100, -40.0, 40.0)) test<-dataframe[1:10,] rad = 1 # run the function sloopoint.fun(points = cbind(dataframe$long, dataframe$lat), test = cbind(test$long, test$lat), rad = rad) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.