| COMBO_weight {COMMA} | R Documentation | 
Compute E-step for Binary Outcome Misclassification Model Estimated With the EM-Algorithm
Description
Compute E-step for Binary Outcome Misclassification Model Estimated With the EM-Algorithm
Usage
COMBO_weight(ystar_matrix, pistar_matrix, pi_matrix, sample_size, n_cat)
Arguments
ystar_matrix | 
 A numeric matrix of indicator variables (0, 1) for the observed
outcome   | 
pistar_matrix | 
 A numeric matrix of conditional probabilities obtained from
the internal function   | 
pi_matrix | 
 A numeric matrix of probabilities obtained from the internal
function   | 
sample_size | 
 An integer value specifying the number of observations in
the sample. This value should be equal to the number of rows of the observed
outcome matrix,   | 
n_cat | 
 The number of categorical values that the true outcome,   | 
Value
COMBO_weight returns a matrix of E-step weights for the EM-algorithm,
computed as follows:
\sum_{k = 1}^2 \frac{y^*_{ik} \pi^*_{ikj} \pi_{ij}}{\sum_{\ell = 1}^2 \pi^*_{i k \ell} \pi_{i \ell}}.
Rows of the matrix correspond to each subject. Columns of the matrix correspond
to the true outcome categories j = 1, \dots, n_cat.