Small error in the manual, compilation issue with Multivariate Probit (Section 9.15)

Posting here in case someone else runs into this problem. I tried compiling and using the multivariate probit model specified in the manual (pages 157-160), but it wouldn’t compile. The error (for me at least) is in the functions block:
functions {
int sum(int[,] a) {
int s = 0;
for (i in 1:size(a))
s += sum(a[i]);
return s;
where the function is called ‘sum’, which is also something else in C++ I believe. Changing this (and where the function is used in the transformed data block) solved the issue.


someone from the core team might suggest to you to directly open an issue in the github manual issue page

Thanks - I’ll post there

1 Like