rBatt / trawl

Analysis of scientific trawl surveys of bottom-dwelling marine organisms
1 stars 0 forks source link

make sure richness posterior properly calculated (esp for Stan) #110

Open rBatt opened 8 years ago

rBatt commented 8 years ago

I need to make sure that I get a posterior of region-wide richness, and that I don't average over the iterations prior to that.

This is somewhat cumbersome if trying to get site-specific and region-wide richness, because the iteration-averaging always occurs at the last step!

E.g., for some Stan code I had previously taken each species' average (across posterior samples) chance of being present in the region, then summed across those chances to get richness. But I really should have summed across species within each iteration so that I could get a distribution of region-wide richness.