naive_loglik_2stage {COMBO}  R Documentation 
Observed Data LogLikelihood Function for Estimation of the Naive TwoStage Misclassification Model
Description
Observed Data LogLikelihood Function for Estimation of the Naive TwoStage Misclassification Model
Usage
naive_loglik_2stage(
param_current,
X,
V,
obs_Ystar_matrix,
obs_Ytilde_matrix,
sample_size,
n_cat
)
Arguments
param_current 
A numeric vector of regression parameters, in the order

X 
A numeric design matrix for the firststage observed mechanism. 
V 
A numeric design matrix for the secondstage observed mechanism. 
obs_Ystar_matrix 
A numeric matrix of indicator variables (0, 1) for the firststage observed
outcome 
obs_Ytilde_matrix 
A numeric matrix of indicator variables (0, 1) for the secondstage observed
outcome 
sample_size 
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 first and secondstage outcomes,

Value
naive_loglik_2stage
returns the negative value of the observed data loglikelihood function,
\sum_{i = 1}^N \Bigl[ \sum_{k = 1}^2 \sum_{k = 1}^2 \sum_{\ell = 1}^2 y^*_{ik} \tilde{y_i} \text{log} \{ P(\tilde{Y}_{i} = \ell, Y^*_i = k  x_i, v_i) \}\Bigr]
,
at the provided inputs.