I have a model with a parameter that is a large vector of 17,840 elements. For the model to run, I need to call command stan with the init values.
I created a file for init values of the parameters (both the large one, and a few smaller). However, when calling stan, I get an error about variable dimensions. It seems like no matter what I do to the vector of values in the init file, Stan will only read 1,685 of them. Is there some kind of hard limit in the code?
The error message was:
mismatch in dimension declared and found in context; processing stage=initialization; variable name=student_re; position=0; dims declared=(1685); dims found=(17840)
Note: The init file does contain a vector 17804 elements.