ass="va">prob</span><span class="op">[</span>,<span class="va">ii</span><span class="op">]</span> <span class="op">&lt;-</span> <span class="va">prob</span><span class="op">[</span>,<span class="va">ii</span><span class="op">]</span> <span class="op">*</span> <span class="op">(</span> <span class="fu">stats</span><span class="fu">::</span><span class="fu"><a href="https://rdrr.io/r/stats/Logistic.html" class="external-link">plogis</a></span><span class="op">(</span> <span class="va">theta2</span> <span clas