the Bernoulli distribution with the logit-parameterized
Bernoulli,<a href="references.html#fn3" class="footnote-ref" id="fnref3"><sup>3</sup></a></p>
<pre><code>  for (n in 1:N)
    y[n] ~ bernoulli_logit(x[n] * beta[ll[n]]);</code></pre>
<p>Unlike in R or BUGS, loops, array access and assignments are fast in
Stan because they are translated directly to C++. In most cases, the
cost of allocating and assigning to a container is more than made up
for by the increased efficiency due to vectorizing the log prob