...
}
model {
   // ... declarations ... statements ...
}
generated quantities {
   // ... declarations ... statements ...
}</code></pre>
<p>The function-definition block contains user-defined functions. The
data block declares the required data for the model. The transformed
data block allows the definition of constants and transforms of the
data. The parameters block declares the model’s parameters — the
unconstrained version of the parameters is what’s sampled or
optimized. The transformed paramete