Skip to content

Spatial model producing nearly perfect predictions #341

Answered by seananderson
garezana asked this question in Q&A
Discussion options

You must be logged in to vote

I think your Poisson spatial model is overfit here. Presumably the spatial random field is able to get very close to your data, helped by there being a mesh vertex at every data point. You can see this with cross validation (granted this is with splitting the data in two, which isn't helping any overfitting issue):

library(sdmTMB)

# Data
count <- c(74, 137, 279, 16, 3, 47, 429, 153, 35, 18, 761, 74, 248, 168, 78, 266, 89, 24, 29, 85, 16, 86, 13, 132, 72, 64, 52, 21, 309, 91, 235, 57, 214, 18, 218, 184, 96, 133, 197, 50, 209, 38, 141, 20, 40, 102, 61, 84, 226, 235, 112, 83, 86, 52, 311, 143, 437, 210, 75, 113, 30, 245, 58, 901, 119, 249, 100, 203, 197, 141, 73, 83, 172, 91, 132, 58)
X <- c(

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@garezana
Comment options

Answer selected by garezana
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants