-
-
Notifications
You must be signed in to change notification settings - Fork 478
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
Survey.stan example from Cognitive Modeling - Expected end of file after end of generated quantities block. #209
Comments
It took some time to find the code, so here's the link for others https://github.com/stan-dev/example-models/blob/6f0ed2269f0b8a39022ac1202e7622fd644904fe/Bayesian_Cognitive_Modeling/ParameterEstimation/Binomial/Survey.stan Can you show your modified code? That code really is full of old stuff, so I'm not surprised if it has stopped working. All the examples should be updated to more recent language version... |
sure, sorry, updated code:
|
That |
oh yes, I'd tried lpmf, but still same error, so I kept changing it to no avail :-/ |
If I have
it passes RStudio's Stan syntax check (super handy btw) and compiles with CmdStanR + cmdstan-2.27.0 |
Compiles also with rstan version 2.26.2 (Stan version 2.26.1) (see https://mc-stan.org/r-packages/) |
Hah, I had CmdStan 2.21.0 lying around and it's super fast to switch version with CmdStanR, so tested with that, too, and it works. |
picked up kids and now upgrading rstan to the github devel version. I'll see if it helps :-) |
ok, using lpmf and upgrading to the latest rstan works. thanks! |
I am trying to run the Survey example from the Bayesian Cognitive Modeling examples.
When I try running it as-is on R 4.1.1. and RStan 2.21.2 (the latest), I get:
The Stan code contains a few deprecated commands, but even fixing those, the error doesn't change.
I
The text was updated successfully, but these errors were encountered: