stan-dev / example-models

Example models for Stan
http://mc-stan.org/
772 stars 479 forks source link

Minor typo in occupancy model case study #140

Open mbjoseph opened 6 years ago

mbjoseph commented 6 years ago

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:

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:

bob-carpenter commented 6 years ago

Thanks for the heads up. Now I wonder if I coded the model correctly. I'll try to go through and check.