sigma.sq convergence issue

24 views
Skip to first unread message

Giada Brunod

unread,
Feb 17, 2026, 8:47:48 AMFeb 17
to spOccupancy and spAbundance users

Hello,

I am working on fishing cat occupancy for my master’s thesis. I am fitting a single-species, single-season spatial occupancy model using spPGOcc(). My dataset is relatively small: I have 245 locations, and the species was detected at 24 locations across 41 independent events.

Most model parameters converge well with n.batch = 1000 and batch.length = 25, except for sigma.sq. I tried increasing n.batch up to 5000 and still does not fully resolve the issue. I also tried increasing the burn-in (to 20% of the total iterations), as suggested in another comment.

I am not sure whether continuing to increase n.batch is a good approach, or if there are more efficient strategies you would recommend, or whether my data are simply insufficient to support estimation of a spatial covariance term.

Below is an example of one of the models I fitted.Screenshot 2026-02-17 at 14.44.28.png

I used the default priors (including phi.unif = c(3 / max.dist, 3 / min.dist), as recommended in the documentation) and the default initial values, as I do not have prior information to inform them.


thanks in advance,

Giada

Jeffrey Doser

unread,
Feb 17, 2026, 4:08:22 PMFeb 17
to spOccupancy and spAbundance users
Hi Giada, 

I would consider your model sufficiently converged based on the summary output you shared. While it does appear that the MCMC chain for sigma.sq mixes more slowly than the other parameters, you have a sufficiently large ESS (over 2000) and the Rhat value is about 1.01. Oftentimes 1.1 used as the cutoff for when a parameter can be converged (or more stringent cutoffs can be 1.05). I would feel comfortable moving forward with your current model and interpreting the results. 

Jeff

Giada Brunod

unread,
Feb 19, 2026, 4:29:26 AMFeb 19
to spOccupancy and spAbundance users

Thank you. 

I am fitting the same models on a subset of my dataset (53 locations, with fishing cats recorded at 10 locations across 24 independent events), including additional variables, and this model emerges as the best-performing one based on k.fold.deviance:

Screenshot 2026-02-19 at 10.27.48.png

Is the convergence of sigma.sq still acceptable in this case, or should I exclude the model (given that Rhat is around 1.1)? Increasing n.batch does not seem to improve convergence substantially, so I suspect that the data may simply not be strong enough to support reliable estimation of spatial covariance.

In addition, after reading several discussions and references online, I am still somewhat confused about how to interpret phi and sigma.sq biologically.


thank you in advance,

Giada

Jeffrey Doser

unread,
Feb 20, 2026, 9:24:57 PMFeb 20
to Giada Brunod, spOccupancy and spAbundance users
Hi Giada, 

Fitting a spatial occupancy model with only 53 sites is a challenging task, as these models typically require more spatial locations than that. Doing cross-validation in particular would be very challenging with such a model, since that would involve fitting a model with an even smaller number of locations. Given the quite large uncertainty in your model parameter estimates and only having 53 sites, I think you are asking too much from your data. So, I would recommend trying a non-spatial occupancy model instead. 

As far as the interpretation of phi and sigma.sq goes. sigma.sq is just like any random effect variance parameter. The larger sigma.sq is, the larger the variance of the random effect, and the more variability there is from one site to another in terms of the size of the spatial random effects. phi is the spatial decay, which corresponds to how far across space two sites are correlated (after accounting for covariates). When using the exponential spatial covariance model, 3/phi is the effective spatial range, which is the distance at which two sites have a residual correlation of 0.05. I would not put too much weight in terms of trying to interpret what these parameters mean from a biological perspective. They are notoriously challenging parameters to estimate, and while they could have some biological meaning in theory (e.g., phi could relate to dispersal ranges), that would be very hard to assess in practice. Instead, estimating these parameters is usually just a way to account for spatial autocorrelation in the model and generate better inference/prediction on occupancy probability itself. 

Jeff

--
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/cb532087-b9b1-4b55-b02c-7b64e4aeb909n%40googlegroups.com.


--
Jeffrey W. Doser, Ph.D.
Assistant Professor
Department of Forestry and Environmental Resources
North Carolina State University
Pronouns: he/him/his
Reply all
Reply to author
Forward
0 new messages