em_function {COMBO} | R Documentation |
EM-Algorithm Function for Estimation of the Misclassification Model
Description
EM-Algorithm Function for Estimation of the Misclassification Model
Usage
em_function(param_current, obs_Y_matrix, X, Z, sample_size, n_cat)
Arguments
param_current |
A numeric vector of regression parameters, in the order
|
obs_Y_matrix |
A numeric matrix of indicator variables (0, 1) for the observed
outcome |
X |
A numeric design matrix for the true outcome mechanism. |
Z |
A numeric design matrix for the observation mechanism. |
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 design matrix, |
n_cat |
The number of categorical values that the true outcome, |
Value
em_function
returns a numeric vector of updated parameter
estimates from one iteration of the EM-algorithm.