Skip to content

Age-Disaggregated Survey Indices with sdmTMB #291

Answered by seananderson
niafall asked this question in Q&A
Discussion options

You must be logged in to vote

There are lots of options here.

The get_index() function can certainly separate the two indexes after the fact, and you would do that just by supplying 2 separate newdata data frames to the predict function and then the get_index() function. Predict first for one age class and then predict for the other age class.

But then the question is how you want to set up the model. The simplest version would share spatial and/or spatiotemporal random effects but perhaps have an interaction between some year variable and the age class variable so that they would have their own means. They could have what is effectively different spatial and/or spatiotemporal random effects by making use of the spati…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by niafall
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