Cmdstan run time error

Hello,
How to interpret the following error message?

Unrecoverable error evaluating the log probability at the initial value.
Exception: vector[min_max] min indexing: accessing element out of range. index 51 out of range; expecting index to be between 1 and 50 (in ‘GP.stan’, line 11, column 4 to column 13)
Exception: vector[min_max] min indexing: accessing element out of range. index 51 out of range; expecting index to be between 1 and 50 (in ‘GP.stan’, line 11, column 4 to column 13)
GP.stan (3.2 KB)
thank you

your Stan program has an indexing error somewhere.
given the program you’ve linked to, it’s not actually line 11 -
more likely it’s in one of the lines that call that function.

you might want to add “print” statements to see what those expressions you’re using to index into the vector actually evaluate to.

perhaps the Stanc3 compiler should be doing a better job on tracking line numbers - not sure.