Internal method dispatched by el() when data is a
data.frame. Returns c("nmar_result_el","nmar_result") with the
point estimate, optional
bootstrap SE, weights, coefficients, diagnostics, and metadata.
# S3 method for data.frame
el(
data,
formula,
auxiliary_means = NULL,
standardize = TRUE,
trim_cap = Inf,
control = list(),
on_failure = c("return", "error"),
variance_method = c("bootstrap", "none"),
bootstrap_reps = 500,
n_total = NULL,
start = NULL,
trace_level = 0,
family = logit_family(),
...
)A data.frame where the outcome column contains NA
for nonrespondents.
Two-sided formula Y_miss ~ auxiliaries or
Y_miss ~ auxiliaries | missingness_predictors.
Named numeric vector of population means for auxiliary
design columns. Names must match the materialized model.matrix columns on
the first RHS (after formula expansion), including factor indicators and
transformed terms. The intercept is always excluded.
Logical; whether to standardize predictors prior to estimation.
Numeric; cap for EL weights (Inf = no trimming).
List; optional solver control parameters for
nleqslv::nleqslv(control = ...).
Character; one of "return" or "error" on solver failure.
Character; one of "bootstrap" or "none".
Integer; number of bootstrap reps if
variance_method = "bootstrap".
Optional analysis-scale population total N_pop. When the
outcome contains at least one NA, n_total defaults to
nrow(data). When respondents-only data are supplied (no NA in
the outcome), n_total must be provided.
Optional list of starting values passed to the solver helpers.
Integer 0-3 controlling estimator logging detail.
Missingness (response) model family specification (defaults to the logit bundle).
Additional arguments passed to the solver.
Implements the empirical likelihood estimator for IID data with
optional auxiliary moment constraints. The missingness-model score is the
Bernoulli derivative with respect to the linear predictor, supporting logit
and probit links. When respondents-only data are supplied (no NA in the
outcome), n_total is required so the response-rate equation targets the
full sample size. When missingness is observed (NA present), the default
population total is nrow(data). If respondents-only data are used and
auxiliaries are requested, you must also provide population auxiliary
means via auxiliary_means. Result weights are the unnormalized EL
masses \(a_i / D_i(\theta)\) on the analysis scale, where \(a_i \equiv 1\)
for IID data.