er">2</span> Example Model and Data</h1>
<p>The following is a simple, complete Stan program for a Bernoulli model
of binary data.<a href="#fn2" class="footnote-ref" id="fnref2"><sup>2</sup></a>
The model assumes the binary observed data <code>y[1],...,y[N]</code> are
i.i.d. with Bernoulli chance-of-success <code>theta</code>.</p>
<div class="sourceCode" id="cb28"><pre class="sourceCode stan"><code class="sourceCode stan"><span id="cb28-1"><a href="example-model-and-data.html#cb28-1" aria-hidden="true" tabi