In R, if I apply
ifelse( u > v, 1, 0) for two vectors
v, it returns a vector containing 1 and 0 with the same length as
In Stan, seems to me that the conditional operator
condition ? 1:0 can only be used for real variables? So is there an equivalent function in Stan for vectors?