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

Error running 2008_model.R #26

Closed
johnbeaumont opened this issue Nov 7, 2020 · 0 comments
Closed

Error running 2008_model.R #26

johnbeaumont opened this issue Nov 7, 2020 · 0 comments

Comments

@johnbeaumont
Copy link

I am running final_2008.R script (in RStudio on a mac). I believe the model is using Rstan as opposed to cmdstanr - therefore I comment out lines 561 to 571 and un-comment 555-559.

When I run the model I get the following error:

Error in mod$fit_ptr() : 
  Exception: variable does not exist; processing stage=data initialization; variable name=poll_mode_state; base type=int  (in 'modela29f20816b55_poll_model_2020' at line 14)

failed to create the sampler; sampling not done  

If I go to line 519-522 where these variables have been commented out and change it I get the following error:

Error in eval(ei, envir) : object 'poll_mode_state' not found

I am clearly not using the model correctly. Can someone help? Apologies, I am sure this is a basic issue

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

1 participant