<span class="op">)</span> </span></span>
<span class="r-in"><span></span></span>
<span class="r-in"><span><span class="co"># Make a gamma matrix, P(topic|words)</span></span></span>
<span class="r-in"><span><span class="va">gamma</span> <span class="op">&lt;-</span> <span class="fu">CalcGamma</span><span class="op">(</span>phi <span class="op">=</span> <span class="va">nih_sample_topic_model</span><span class="op">$</span><span class="va">phi</span>, </span></span>
<span class="r-in"><span>                 