n 1:(nind+nz)){<br>
</font><font face="Arial" color="#000100" size="1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</font><font face="Arial" color="#000100" size="3">z[i]~dbern(psi) # latent indicator variables from data augmentation<br>
</font><font face="Arial" color="#000100" size="1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</font><font face="Arial" color="#000100" size="3">x[i]~dunif(0,4) # distance is a random variable<br>
</font><font face="Arial" color="#000100" size="1">&nb