if (FALSE) {
if (requireNamespace('INLA')) {
#Get Data
data("SolitaryTinamou")
proj <- "+proj=longlat +ellps=WGS84"
data <- SolitaryTinamou$datasets
mesh <- SolitaryTinamou$mesh
mesh$crs <- proj
#Set model up
organizedData <- startISDM(data, Mesh = mesh,
Projection = proj,
responsePA = 'Present')
##Run the model
modelRun <- fitISDM(organizedData,
options = list(control.inla = list(int.strategy = 'eb')))
#Choose dataset to leave out
eBirdOut <- datasetOut(modelRun, dataset = 'eBird')
#Print datasetOut summary
eBirdOut
}
}
Run the code above in your browser using DataLab