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

Indexing different models #3

Open
klomori opened this issue Apr 4, 2018 · 1 comment
Open

Indexing different models #3

klomori opened this issue Apr 4, 2018 · 1 comment

Comments

@klomori
Copy link

klomori commented Apr 4, 2018

I am trying to figure out how to specify the model to use in the cpp file.
In the "DATA specification portion", I have DATA_VECTOR( ModelNumber ).

This later gets called in the model specification section: if(ModelNumber == 0 ) ... model...

It is unable to read the ModelNumber vector. Should this be a scalar?

@James-Thorson
Copy link
Owner

I recommend using DATA_IVECTOR where IVECTOR indicates that its a vector of integers, such that you can use == to evaluate whether it takes the value {0,1,2} etc. You could do the same thing using DATA_VECTOR using < and > evaluations but that seems more complicated.

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

2 participants