update_Q_col_block: Block update the Q matrix by column

Description Usage Arguments Value

View source: R/sample_mcmc.R

Description

This function updates Q matrix by Gibbs sampler (without identifiability constraints)

Usage

1
update_Q_col_block(Y, Q_old, H, z, t, mylist, p, theta, psi)

Arguments

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

Value

A Q matrix with all elements updated.


zhenkewu/rewind documentation built on Sept. 9, 2020, 3:40 p.m.