Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor typo in occupancy model case study #140

Open
mbjoseph opened this issue Aug 28, 2018 · 1 comment
Open

Minor typo in occupancy model case study #140

mbjoseph opened this issue Aug 28, 2018 · 1 comment

Comments

@mbjoseph
Copy link
Contributor

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$
@bob-carpenter
Copy link
Contributor

bob-carpenter commented Aug 29, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants