Hello
I found this line in the Reduce Sum: A Minimal Example:
the function we write for
reduce_sum
must be a user-defined probability distribution function (which means it must be suffixed with_lpdf
or_lpmf
).
So what do I do when I have a customized likelihood? Do I simply create a user-defined function with the appropriate suffix? Thanks.