Thanks, Håvard!
I have now upgraded R and the INLA and inlabru packages.
I went back and rechecked my null/ no covariates model, which still predicts a similar abundance to my input points, however I am now getting these error messages:
***[0] thread_num[0] warning *** iterative process seems to diverge, 'vb.correction' is aborted
*** Please (re-)consider your model, priors, confounding, etc.
***[2] thread_num[2] warning *** iterative process seems to diverge, 'vb.correction' is aborted
***[2] thread_num[2] warning *** max_correction = 25.01 >= 25.00, 'vb.correction' is aborted
*** You can change the emergency value (current value=25.00) by
*** 'control.inla=list(control.vb=list(emergency=...))'
*** Please (re-)consider your model, priors, confounding, etc.
The model output looks okay, my CRS is in metres, however the DIC values are negative and I am unsure what this means:
inlabru version: 2.13.0
INLA version: 25.09.04
Components:
Intercept: main = linear(1), group = exchangeable(1L), replicate = iid(1L), NULL
mySmooth: main = spde(geometry), group = exchangeable(1L), replicate = iid(1L), NULL
Observation models:
Family: 'cp'
Tag: <No tag>
Data class: 'sf', 'tbl_df', 'tbl', 'data.frame'
Response class: 'numeric'
Predictor: geometry ~ .
Additive/Linear: TRUE/TRUE
Used components: effects[Intercept, mySmooth], latent[]
Time used:
Pre = 8.08, Running = 4.87, Post = 0.167, Total = 13.1
Fixed effects:
mean sd 0.025quant 0.5quant 0.975quant mode kld
Intercept -12.478 5.488 -26.657 -11.794 -3.886 -11.117 0.007
Random effects:
Name Model
mySmooth SPDE2 model
Model hyperparameters:
mean sd 0.025quant 0.5quant 0.975quant mode
Range for mySmooth 1036.62 352.13 540.04 973.55 1906.56 853.39
Stdev for mySmooth 8.52 2.63 4.72 8.08 14.93 7.21
Deviance Information Criterion (DIC) ...............: -6755964.79
Deviance Information Criterion (DIC, saturated) ....: -6755965.27
Effective number of parameters .....................: -6756786.30
Watanabe-Akaike information criterion (WAIC) ...: 34991.17
Effective number of parameters .................: 11530.87
Marginal log-Likelihood: -3379648.01
CPO, PIT is computed
Posterior summaries for the linear predictor and the fitted values are computed
(Posterior marginals needs also 'control.compute=list(return.marginals.predictor=TRUE)')
When adding the covariates in I receive different error messages:
*** WARNING *** GMRFLib_2order_approx: rescue NAN/INF values in logl for idx=0
*** WARNING *** GMRFLib_2order_approx: reset counter for 334 NAN/INF values in logl
*** WARNING *** GMRFLib_2order_approx: rescue NAN/INF values in logl for idx=0
My points (penguin nests) and main covariate (guano cover) are very spatially defined, I wonder if this could be causing zero inflation?
Any advice would be greatly appreciated!
Alexandra