avehtari / ROS-Examples

Regression and other stories R examples
https://avehtari.github.io/ROS-Examples/
325 stars 256 forks source link

typo: `offset=log(exposure)` #76

Closed ASKurz closed 3 years ago

ASKurz commented 3 years ago

On page 268, the code for the first roaches model is:

fit_1 <- stan_glm(y ~ roach100 + treatment + senior, family=neg_binomial_2,
                  offset=log(exposure), data=roaches)

However, the exposure variable in the roaches.csv file is called exposure2.

avehtari commented 3 years ago

Thanks! Fixed and added to the errata.