do_update_Q_one: Update the current element of Q_ml or not

Description Usage Arguments Value References

View source: R/sample_mcmc.R

Description

Function to test whether an update of the current element of Q_ml is needed. This function must be used for the constrained Gibbs sampler.

Usage

1
do_update_Q_one(Q, k, l)

Arguments

Q

a matrix with rows corresponding to latent states and columns for number of binary measurements

k, l

row and column indices for checking whether to update Q_kl

Value

A logical value. TRUE for updating in constrained Gibbs sampler, FALSE for skipping the Gibbs update.

References

Chen, Y., Culpepper, S. A., Chen, Y., and Douglas, J. (2017). Bayesian estimation of the DINA Q matrix.


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