Skip to content

Spatial modelling of both estimate and dispersion? #355

Answered by seananderson
R-KenK asked this question in Q&A
Discussion options

You must be logged in to vote

It seems to me the spatial random field estimated by sdmTMB is achieving goal 1. Am I correct?

Yes

I would like the model to reflect the overall uncertainty of neighboring locations, and quantify where uncertainty is high(er) and low(er) from the data.

This is possible. The fastest way to compute this is with draws from the joint parameter covariance matrix (actually the inverse: the precision matrix). Functionally, this is with the nsim argument in ?predict.sdmTMB. There's currently an example in the package readme. Theoretically you can get this from predict.sdmTMB() with se_fit = TRUE, but in practice this can be very slow when including the random field values.

On the other hand, …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@R-KenK
Comment options

Answer selected by R-KenK
Comment options

You must be logged in to vote
1 reply
@R-KenK
Comment options

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