log_pr_Qml_cond_enum: Compute the full conditional probability of column Q_l given...

Description Usage Arguments Value

View source: R/sample_mcmc.R

Description

Function to compute the log full conditional density for all patterns of the l-th column of Q. This function is used in update_Q_col_block.

Usage

1
log_pr_Qml_cond_enum(Yl, eta_star, Ql_enumerate, thetal, psil)

Arguments

Yl

a column of the binary data matrix

eta_star

a matrix of machine usage indicators, rows for clusters, columns for M machines

Ql_enumerate

l-th column of the Q matrix

thetal, psil

True and false positive rates. Both are vectors of length L

Value

a vector of log conditional probability of column Q_l taking each of 2^nrow(Ql_enumerate) given other unknown parameters, the dimension will be identical to 2^nrow(Ql_enumerate).


oslerinhealth/rewind documentation built on May 26, 2021, 6:56 a.m.