Skip to content

Random effect structure – using sdmTMB for a sparse river network. #379

Discussion options

You must be logged in to vote

This is a good question. You have spatial fields included in all of these models, and those spatial fields (as random effects) are going to try to explain all of the covariates that might be related to the response. Adding on additional random effects that are spatially structured (such as stream or area) is generally not a good idea, because it can change the interpretation / effects of fixed effect variables. I think it's fine to include either, but if you did so I'd turn the spatial field off with spatial="off"

Looking at these models, you're very close with the 3rd model that has no random effects (your output pasted below). The ar1 phi gradient can be solved either by doing the extra…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@JulieCharbonneau
Comment options

@ericward-noaa
Comment options

Answer selected by JulieCharbonneau
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants