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

Gelman and Hills Chapter 14 Example #1461

Closed
jonwake opened this issue May 26, 2015 · 1 comment
Closed

Gelman and Hills Chapter 14 Example #1461

jonwake opened this issue May 26, 2015 · 1 comment
Milestone

Comments

@jonwake
Copy link

jonwake commented May 26, 2015

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

@bob-carpenter
Copy link
Contributor

Thanks for the heads up.

I'm moving this to the example-models tracker: stan-dev/example-models#21

We really need to do a better job curating those examples. I think they were published prematurely (i.e., not enough testing).

@syclik syclik modified the milestone: v2.7.0 Jun 11, 2015
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

3 participants