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

Remove reject column from UCBadmit #343

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JohannesNE
Copy link

The examples using UCBadmit gives an error with Stan 2.21.0. This is caused by the reject column in UCBadmit, as reject is apparently a reserved keyword in Stan.

Semantic error in '/tmp/RtmpLZPZxd/model-43b00def6d21.stan', line 2, column 8 to column 14:
   -------------------------------------------------
     1:  data{
     2:      int reject[12];
                 ^
     3:      int applications[12];
     4:      int admit[12];
   -------------------------------------------------

Identifier 'reject' clashes with reserved keyword.

make: *** [make/program:50: /tmp/RtmpLZPZxd/model-43b00def6d21.hpp] Error 1

Error: An error occured during compilation! See the message above for more information.

The examples using UCBadmit gives an error with Stan 2.21.0. This is caused by the reject column in UCBadmit, as reject is apparently a reserved keyword in Stan.
@rmcelreath
Copy link
Owner

Which example in the book causes this? I thought this is fixed in the second edition already, so no change is required.

@JohannesNE
Copy link
Author

Not sure any examples from the book causes a problem. I only noticed the problem trying to run the examples from the README https://github.com/rmcelreath/rethinking/blob/master/README.md

@JohannesNE
Copy link
Author

Oh, and feel free just to close this pull request if you prefer fixing it in an other way.

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

Successfully merging this pull request may close these issues.

2 participants