Re: spatio-temporal random effects vs colonisation & extinction probabilities

27 views
Skip to first unread message

Charles Emogor

unread,
Aug 18, 2025, 12:39:42 PMAug 18
to spOccupancy and spAbundance users

 

 

 

 

From: C.A. Emogor <ca...@cam.ac.uk>
Date: Monday, 18 August 2025 at 17:36
To: spOccupancy and spAbundance users <spocc-spa...@googlegroups.com>
Subject: spatio-temporal random effects vs colonisation & extinction probabilities

Dear Jeff, Marc, all

 

I would appreciate your thoughts on the questions below. For context, I am using spOccupancy models to understand poaching distribution across Africa (using data collected via SMART by rangers during routine patrols). As I have data across 5-10 years per site, I am using year as my primary period and unique patrols within each year as my ‘replicate’ (or secondary period).

 

  1. It looks like the package does not allow for direct estimation of colonisation/extinction probabilities, but does this via modelling spatio-temporal occurrence patterns using independent spatial and temporal random effects (see Brief overview of spatial-temporal occupancy models section; https://doserlab.com/files/spoccupancy-web/articles/spacetimemodelshtml). As I understand it, this means that I cannot answer certain questions. For example, spatio-temporal RE would be appropriate to answer this research question: Where and when is poaching most likely, given landscape features and patrol effort? whereas I need to model C/E probabilities directly to answer this RQ, which I am more interested in: Do ranger patrols cause hunters to abandon sites (extinction) or shift to new areas (colonisation)? Is there a way to get at the latter in spOccupancy?

 

  1. My current model would not converge. Although the detection part seems reasonable (Rhat of 1 and ESS >500), the occupancy part is bad (Rhat of 1 to 20 across covariates and ESS of max 250; see attachment). I started with weakly informative priors and have tried a) setting the priors based on the raw occupancy and b) increasing the number of simulations. Are there any other practical steps? Do you reckon the approximation is good? Is the model guaranteed to converge if I run it for a very long time?

 

  1. My current model is a multi-season single-species model. I want to extend it to a multi-season, multi-species model so I can also account for species distribution. Ideally, I want to capture any correlations between species distribution and the occurrence of poaching. I'm thus unsure how best to implement the model: should I extract species occurrence (either presence/absence or count) per grid and use it as a predictor, or include species presence/absence as a response variable within a joint modelling framework?

 

I would appreciate any thoughts you have.

 

Regards

Charles

.....

Charles Emogor, PhD

Schmidt Science Fellow

Department of Computer Science and Technology, University of Cambridge &

John A. Paulson School of Engineering and Applied Sciences, Harvard University

https://pangolino.org/ | https://charlesemogor.com/

 

 

Screenshot 2025-08-18 at 17.03.02 (2).png

Jeffrey Doser

unread,
Aug 22, 2025, 11:06:08 AMAug 22
to spOccupancy and spAbundance users
Hi Charles,

Apologies for the delay. Here are some quick thoughts on your three points:

  1. Unfortunately, that sort of question is not really possible with the existing spOccupancy functionality. While you could derive post-hoc estimates of colonization and extinction, you wouldn't really be able to relate that to any covariates without then needing to run some other analysis, which would not be ideal. If that is your main interest, your best bet is probably to try and use the colext function in unmarked, or if you need a multi-species model, you may have to implement a multi-species dynamic occupancy model in JAGS and/or nimble (I'm sure you could find some code from a paper somewhere that does that).
  2. It seems like there is certainly some sort of problem with the model that is preventing convergence. There is no guarantee that convergence will happen, particularly if the model is overly complex or there is some other reason for not being able to identify all the model parameters. I would suggest you start the model to be much simpler. See if you can first just get an intercept only model to work, then gradually increase model complexity to see what is causing the problem. A couple of things I noted is that the "accessibility" covariate in particular is showing signs of not being able to be estimated, so you may check that to see if there is a reason why that might be the case (e.g., not enough variability in the values). The two random effect variances are also extremely large, which indicates some sort of identifiability problem trying to estimate those.
  3. This probably depends on how many species you are working with. Is it just one species that you want to look at its relationship to poaching? If so, it might be easier to just use presence/absence as a covariate, with the caveat that that covariate would not account for the fact that there may be imperfect detection in that species distribution. If you have a lot of species, modeling jointly would probably be the way to go (could use stMsPGOcc to do that).
Jeff

Charles Emogor

unread,
Oct 2, 2025, 6:29:19 AMOct 2
to Jeffrey Doser, spOccupancy and spAbundance users

Hi Jeff

 

Thanks for this. I finally got the model to converge, and now I am modelling wildlife and poaching directly rather than using presence/absence data on wildlife as a predictor in the model.

 

But I am interested in examining the interaction between poaching (signs of illegal activity detected by rangers) and wildlife (wild animals detected by rangers), with the aim of testing whether the presence of one actor or “species” alters the other’s occupancy probability. The svcMsPGOcc function in spOccupancy seems to address species correlations through shared latent structure, but I am unsure whether it can also capture conditional dependence in the way that Rota et al.’s two-species model does (https://besjournals.onlinelibrary.wiley.com/doi/full/10.1111/2041-210X.12587). In Rota’s framework, the occupancy of one species (e.g., poachers) is modeled explicitly as conditional on the presence or absence of another species (e.g., wildlife), allowing for direct tests of competition, facilitation, or other pairwise interactions. Perhaps the difference is very subtle and inconsequential?

 

Regards

Charles

 

--
You received this message because you are subscribed to the Google Groups "spOccupancy and spAbundance users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spocc-spabund-u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/spocc-spabund-users/99fecc53-f00d-42ce-b62b-26c230a13f97n%40googlegroups.com.

Jeffrey Doser

unread,
Oct 9, 2025, 2:03:47 PM (7 days ago) Oct 9
to spOccupancy and spAbundance users
Hi Charles,

If you are interested explicitly understanding an interaction, then I would suggest using something like the Rota et al. model instead of the multi-species models in spOccupancy. The models in spOccupancy account for residual species correlations, but they are not explicitly designed to quantify species co-occurrence patterns like the Rota model. While such estimates could be derived from the models in spOccupancy, it would be a good amount of work and would involve a very nuanced interpretation. Altogether, I think going with something like the Rota model is probably a better bet for your objectives.

Cheers,

Jeff

Charles Emogor

unread,
Oct 9, 2025, 2:12:01 PM (7 days ago) Oct 9
to Jeffrey Doser, spOccupancy and spAbundance users
Reply all
Reply to author
Forward
0 new messages