000000" size="2"><strong>for(s in 1:S) { <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# sampling probabilities <br>
</strong></font><font face="Arial" color="#000100" size="1">&nbsp;&nbsp;&nbsp;
</font><font face="Arial" color="#000000" size="1"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</strong></font><font face="Arial" color="#000000" size="2"><strong>&nbsp;&nbsp;&nbsp;pi[k, t, s] &lt;- inprod(y[k, t - 1, ], Lambda[k, t, , s]) <br>
</st