stan-dev / example-models

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

Gelman and Hill 14.1_State-LevelOpinionsFromNationalPolls.R plot error #21

Open bob-carpenter opened 9 years ago

bob-carpenter commented 9 years ago

From @jonwake originally on stan-dev/stan issue tracker: https://github.com/stan-dev/stan/issues/1461

I'm running the survey polls examples from the above chapter. The samplers are working without problem, but creating the figures is creating errors. Specifically, running the code here: https://github.com/stan-dev/example-models/blob/master/ARM/Ch.14/14.1_State-LevelOpinionsFromNationalPolls.R

and running the code in lines142-170 (to create Fig 14.2 of the book) gives the errors: Error in a.state[4000 - 1, j] : subscript out of bounds .... Error in a.state[4000 - 18, j] : subscript out of bounds Error in a.state[4000 - 19, j] : subscript out of bounds Error in a.state[4000 - 20, j] : subscript out of bounds Warning message: In loop_apply(n, do.ply) : Removed 1 rows containing missing values (geom_point).

Best Jon

jbao commented 7 years ago

Has this been fixed by now? Cannot reproduce it.

jonwake commented 7 years ago

I haven't tried in a while, but I'll try and get round to giving it a go

Has this been fixed by now? Cannot reproduce it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/stan-dev/example-models/issues/21#issuecomment-268252093, or mute the thread https://github.com/notifications/unsubscribe-auth/AMBTCnvuYvE146mHWjDCpL4rTWvR3dUEks5rJ-HjgaJpZM4Eqscs.

--

Jon Wakefield Professor of Statistics Professor of Biostatistics University of Washington http://faculty.washington.edu/jonno/cv.html