Walks every node that drm_sem() derived an imputation model for and
returns the engine's missing-predictor table, stacked, with a node
column. Omitting variable stacks every imputed parent — it never
silently returns the first mi() term only. Branch on
uncertainty_status, never on is.na(std_error): observed rows and
se = FALSE requests report std_error = NA with status "ok".
This is not multiple imputation, not Rubin's rules, and not
full-information maximum likelihood across the SEM.
Usage
imputed(object, ...)
# S3 method for class 'drm_sem'
imputed(
object,
variable = NULL,
node = NULL,
rows = c("missing", "all"),
se = TRUE,
...
)Value
A data frame with node plus the engine columns variable,
original_row, model_row, observed, estimate, std_error,
source, and uncertainty_status. Zero rows when nothing was
imputed.