sampling-statements" class="section level3 unnumbered">
<h3>Defining probability functions for sampling statements</h3>
<p>Functions whose names end in <code>_lpdf</code> and <code>_lpmf</code> (density
and mass functions) can be used as probability functions in sampling
statements. As with the built-in functions, the first argument will
appear on the left of the sampling statement operator (<code>~</code>) in
the sampling statement and the other arguments follow. For example,
suppose a function returning t