This is an old version, view current version.
13.7 User-defined function with
Deprecated: A user-defined function ending in
be used in sampling statements, with
y ~ foo(...);
having the same effect as
target += foo_log(y, ...);
Replacement: Replace the
_log suffix with
_lpdf for density
_lpmf for mass functions in the user-defined function.