elizabethng / predator-diets

Code used to perform the analyses in "Predator stomach contents can provide accurate indices of prey biomass"
https://academic.oup.com/icesjms/article/78/3/1146/6145864
0 stars 0 forks source link

Development #50

Closed elizabethng closed 5 years ago

elizabethng commented 5 years ago

Do post-hoc overlap calculations for single-species model outputs with non-matching knot locations. Since these models were run for different sets of data, the knot locations won't match up and it's inappropriate to us the knot numbers as the "same" location for calculating overlap. In this fix, I use the sf package to define a new grid over which I averaged the knot-level densities and calculate overlap. I calculate the annual index, make an annually-averaged plot of overlap, and also support plotting time-series maps of the overlap distribution.

I think there is are also some changes for the multi-species modeling approach as well.