EM_function_bernoulliY_XM {COMMA} | R Documentation |
EM Algorithm Function for Estimation of the Misclassification Model
Description
Function is for cases with Y \sim Bernoulli
and with an interaction term
in the outcome mechanism.
Usage
EM_function_bernoulliY_XM(
param_current,
obs_mediator,
obs_outcome,
X,
Z,
c_matrix,
sample_size,
n_cat
)
Arguments
param_current |
A numeric vector of regression parameters, in the order
|
obs_mediator |
A numeric vector of indicator variables (1, 2) for the observed
mediator |
obs_outcome |
A vector containing the outcome variables of interest. There
should be no |
X |
A numeric design matrix for the true mediator mechanism. |
Z |
A numeric design matrix for the observation mechanism. |
c_matrix |
A numeric matrix of covariates in the true mediator and outcome mechanisms.
|
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_bernoulliY
returns a numeric vector of updated parameter
estimates from one iteration of the EM-algorithm.