Description Usage Arguments Value
This function updates Q matrix by Gibbs sampler (without identifiability constraints)
| 1 | update_Q_col_block(Y, Q_old, H, z, t, mylist, p, theta, psi)
 | 
| Y | binary data matrix | 
| Q_old | the Q matrix from the last scan in Gibbs sampler (of dimension M by L) | 
| H | matrix of latent state profiles, rows for N subjects, columns for M latent states | 
| z | a vector of individual cluster indicators | 
| t | the number of clusters at an iteration | 
| mylist | the ordered list that keeps the cluster ids in increasing order | 
| p | latent state prevalences; a vector of length identical to the columns of H. | 
| theta, psi | True and false positive rates, each of length L | 
A Q matrix with all elements updated.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.