Reduce_sum for customized likelihood

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.

That’s correct