--
*** Three hierarchical modeling email lists ***
(1) unmarked: for questions specific to the R package unmarked
(2) SCR: for design and Bayesian or non-bayesian analysis of spatial capture-recapture
(3) HMecology (this list): for everything else, especially material covered in the books by Royle & Dorazio (2008), Kéry & Schaub (2012), Kéry & Royle (2015)
---
You received this message because you are subscribed to the Google Groups "hmecology: Hierarchical Modeling in Ecology" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hmecology+unsubscribe@googlegroups.com.
To post to this group, send email to hmec...@googlegroups.com.
Visit this group at https://groups.google.com/group/hmecology.
To view this discussion on the web visit https://groups.google.com/d/msgid/hmecology/786f9aa7-0c4f-46c5-a65b-1462f0552c88%40googlegroups.com.
Hi Natasha,I'm dealing with the same problem here for Multi-species Occupancy models.John, in the alternative you mention for calculating WAIC in R after running the model... How would you combine the likelihood calculation if it comes from two probabilities, say p and psi?I understand in this one, you can only calculate it for p, right?(loglike[i, j, k, sim]<-dbinom(1, size, prob=p[i, j, k, sim]).Thanks!Andrea
On Tue, May 9, 2017 at 1:20 PM, John Clare <john....@maine.edu> wrote:
Hi Natasha,There is some discussion on this a bit further down the board, but there are a couple of ways to do it. Among others, Gelman has a paper (http://www.stat.columbia.edu/~gelman/research/published/waic_understand3.pdf) that describes the derivation of WAIC: formulas 5 (the lpd of the model) and 12 (the penalty, based upon variance in the lpd) are most germane. Although not terribly well documented, JAGS has a couple functions to calculate the log probability of specific observations (i.e., loglike[i, j, k]<-logdensity.bern(p[i, j, k]). An alternative is to do so in r after the fact (loglike[i, j, k, sim]<-dbinom(1, size, prob=p[i, j, k, sim]).Cheers,John
--
*** Three hierarchical modeling email lists ***
(1) unmarked: for questions specific to the R package unmarked
(2) SCR: for design and Bayesian or non-bayesian analysis of spatial capture-recapture
(3) HMecology (this list): for everything else, especially material covered in the books by Royle & Dorazio (2008), Kéry & Schaub (2012), Kéry & Royle (2015)
---
You received this message because you are subscribed to the Google Groups "hmecology: Hierarchical Modeling in Ecology" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hmecology+...@googlegroups.com.
To post to this group, send email to hmec...@googlegroups.com.
Visit this group at https://groups.google.com/group/hmecology.
To view this discussion on the web visit https://groups.google.com/d/msgid/hmecology/786f9aa7-0c4f-46c5-a65b-1462f0552c88%40googlegroups.com.