Hi, is there a quick way to compare a vector and a number?
In R, I can just do
sum (x > 3);
Thanks.
Hi, is there a quick way to compare a vector and a number?
In R, I can just do
sum (x > 3);
Thanks.
The >
operator in Stan does not accept vectors, so the best way to do this will be a loop.