n>covertype[-<span class="kw">c</span>(testObservations),<span class="dv">1</span>]
dataset =<span class="st"> </span><span class="kw">list</span>( <span class="st">"X"</span> =<span class="st"> </span>X, <span class="st">"y"</span> =<span class="st"> </span>y )</code></pre></div>
<p>In the last line we defined the dataset as it will be input to the relevant <code>sgmcmc</code> function. A lot of the inputs to functions in <code>sgmcmc</code> are defined as lists. This improves flexibility by enabling model