There is a minor but potentially confusing typo in the multispecies occupancy model case study here: https://github.com/stan-dev/example-models/blob/master/knitr/dorazio-royle-occupancy/dorazio-et-al-knitr.Rmd#data The current case study incorrectly specifies the range of valid values of the observation matrix x as integers from 1 to K: - $x$: $n \times J$ matrix where $x_{i,j} \in 1{:}K$ is the number of visits in which species $i$ was observed at site $j$ The range of values should be 0:K, not 1:K. A zero entry would indicate that species $i$ was not observed at site $j$. This should be: - $x$: $n \times J$ matrix where $x_{i,j} \in 0{:}K$ is the number of visits in which species $i$ was observed at site $j$
Activity
bob-carpenter commentedon Aug 29, 2018