2018_FSH556 icon indicating copy to clipboard operation
2018_FSH556 copied to clipboard

Indexing different models

Open klomori opened this issue 6 years ago • 1 comments

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?

klomori avatar Apr 04 '18 14:04 klomori

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.

James-Thorson avatar Apr 04 '18 14:04 James-Thorson