Penalized expectation-maximization algorithm.
em_estimation(
p,
item_data,
pred_data,
prox_data,
mean_predictors,
var_predictors,
item_type,
theta,
pen_type,
tau_vec,
id_tau,
num_tau,
alpha,
gamma,
pen,
pen.deriv,
anchor,
final_control,
samp_size,
num_items,
num_responses,
num_predictors,
num_quad,
adapt_quad,
optim_method,
estimator_history,
estimator_limit,
NA_cases,
exit_code
)a "list" of matrices with unprocessed model estimates
List of parameters with starting values obtained from preprocess.
Matrix or data frame of item responses.
Matrix or data frame of DIF and/or impact predictors.
Vector of observed proxy scores.
Possibly different matrix of predictors for the mean impact equation.
Possibly different matrix of predictors for the variance impact equation.
Character value or vector indicating the type of item to be modeled.
Vector of fixed quadrature points.
Character value indicating the penalty function to use.
Vector of tau values that either are automatically generated
or provided by the user. The first tau_vec will be equal to Inf
to identify a minimal value of tau in which all DIF is removed from the
model.
Logical indicating whether to identify the minimum value of tau in which all DIF parameters are removed from the model.
Numeric value indicating the number of tau values to run regDIF on.
Numeric value indicating the alpha parameter in the elastic net penalty function.
Numeric value indicating the gamma parameter in the MCP function.
Index for the tau vector.
Logical value indicating whether to use the second derivative of the penalized parameter during regularization. The default is TRUE.
Optional numeric value or vector indicating which item
response(s) are anchors (e.g., anchor = 1).
Control parameters.
Numeric value indicating the sample size.
Numeric value indicating the number of items.
Vector with number of responses for each item.
Numeric value indicating the number of predictors.
Numeric value indicating the number of quadrature points.
Logical value indicating whether to use adaptive quad. needs to be identified.
Character value indicating the type of optimization method to use.
List to save EM iterations for supplemental EM algorithm.
Logical value indicating whether the EM algorithm reached the maxit limit in the previous estimation round.
Logical vector indicating if observation is missing.
Integer indicating if the model has converged properly.