rbchan / unmarked

R package for hierarchical models in ecological research
https://rbchan.github.io/unmarked/
37 stars 25 forks source link

cloglog link function option for occu() #142

Closed kenkellner closed 4 years ago

kenkellner commented 4 years ago

Adds option to use complimentary log-log link function in occu with a new argument linkPsi="cloglog" (defaults to logit). Also added a new helper function getN which will calculate predicted abundance for these models.

Based on Jonathan Cohen's post in the forums: https://groups.google.com/forum/#!searchin/unmarked/cohen%7Csort:date/unmarked/Xlp_QT7COJE/sLwRMomIAAAJ

rbchan commented 4 years ago

I like the idea of adding the cloglog link, but I'm hesitant about the getN method for occu fits. Statistically it's fine, but it ignores abundance-induced heterogeneity in p, so it seems inferior to using occuRN. Can we hold off on getN for now and just add the cloglog link?

kenkellner commented 4 years ago

Makes sense, I sent another PR without it.