mbjoseph / mbjoseph.github.io

Personal website created with distill
https://mbjoseph.github.io
2 stars 0 forks source link

Adapting your comm_occ.txt model for dynamic multispecies occupancy #6

Closed ajdennhardt closed 3 years ago

ajdennhardt commented 3 years ago

Hi Maxwell,

The following queries are in reference to the dynamic multispecies occupancy model you previously described here and here. I have attempted to incorporate many of your ideas in candidate models of my own toward describing multispecies bird dynamics in a temperate agroforested system.

Regarding your example, if you have the time and interest available, then I hoped you might be willing to answer some questions:

Please let me know if I can clarify anything above, and I sincerely thank you for your time. I was unsure of where to contact you about the aforementioned ideas, and so I started here. I hope that's okay, and I look forward to hearing back from you soon.

Sincerely, Andrew

P.S. Do you also have a preferred citation for your example(s)?

ajdennhardt commented 3 years ago

I recently found some guidance in Kery and Royle (2020). Perhaps it's unnecessary to address my previous questions.

mbjoseph commented 3 years ago

Hey @ajdennhardt - glad you are finding this useful.

Yes - you could think of that as an "intercept" parameter for occupancy probabilities. It's also the logit probability of colonization (think about what psi is when the previous timestep's z value is 0 for this line).

No - this model doesn't include explicit correlation parameters to represent associations among species. Here, rho is a parameter that represents the effect of the previous time step's occupancy probability: https://github.com/mbjoseph/mbjoseph.github.io/blob/master/_posts/2018-12-22-dynamic-community-occupancy-model-jags/com_occ.txt#L27

Yes you can definitely add covariates to the occupancy model, even with those parameters. IIRC there might be some dynamic occupancy examples in the Royle/Dorazio book (ch 9) that do this: https://www.mbr-pwrc.usgs.gov/pubanalysis/roylebook/chapters.htm

I'm not sure I know what you mean by interaction effects between species. If you wanted to model correlations among species, you could do it, but it might get complicated. You might find some useful tidbits in this paper: https://doi.org/10.1002/ecy.2754

Are beta0.trt1 and beta0.trt2 redundant? If the treatment indicator is 0 you'd get beta[i], and if it's one you'd get beta[i] + beta0.trt1[i] + beta0.trt2[i], in which case I would guess only the sum beta0.trt1[i] + beta0.trt2[i] is identified. Could you get an equivalent parameterization if you do beta[i] + beta.trt[i] * indicator[j]?

ajdennhardt commented 3 years ago

Thank you for your helpful responses, @mbjoseph . The answers and resources you've provided are very straightforward and useful.

On the last question, you're right; there was a typo. That treatment difference should read: beta0.trt1[i] (1 - Indicator[j]) + beta0.trt2[i] Indicator[j] , where treatment 1 sites are coded as "1" and treatment 2 sites are coded as "0." You're also correct about the correlation between species part, which I also misrepresented. I will continue to chip away at the challenges of these dynamical models. Thanks again!