 </span><span class="kw">ncol</span>(dataset$X)
params =<span class="st"> </span><span class="kw">list</span>( <span class="st">"bias"</span> =<span class="st"> </span><span class="dv">0</span>, <span class="st">"beta"</span> =<span class="st"> </span><span class="kw">matrix</span>( <span class="kw">rep</span>( <span class="dv">0</span>, d ), <span class="dt">nrow =</span> d ) )</code></pre></div>
<p>Now we’ll define the functions <code>logLik</code> and <code>logPrior</code>. It should now become clear w