This is an old version, view current version.

13.7 User-Defined Function with _log Suffix

Deprecated: A user-defined function ending in _log can 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 functions or _lpmf for mass functions in the user-defined function.