span>, <span class="at">d=</span><span class="dv">5</span>, <span class="at">param=</span><span class="fl">0.5</span>, <span class="at">model=</span><span class="st">&quot;log&quot;</span>)</span>
<span id="cb3-3"><a href="#cb3-3" tabindex="-1"></a><span class="co">#All rows sum to 1 by construction</span></span>
<span id="cb3-4"><a href="#cb3-4" tabindex="-1"></a><span class="fu">head</span>(<span class="fu">rowSums</span>(w))</span></code></pre></div>
<pre><code>## [1] 1 1 1 1 1 1</code></pre>
<div class=