Build a bias-iteration report (FACETS Table 9: iteration / convergence trace)
Source:R/api-reports.R
bias_iteration_report.RdThis report is NOT an alias of bias_interaction_report() despite the
similar name. It focuses on the recalibration path of a bias run:
iteration table, convergence summary, and orientation review. Use this
to confirm that the bias recalibration itself converged; use
bias_interaction_report() to review the ranked flagged cells from
the converged run.
Usage
bias_iteration_report(
x,
diagnostics = NULL,
facet_a = NULL,
facet_b = NULL,
interaction_facets = NULL,
max_abs = 10,
omit_extreme = TRUE,
max_iter = 4,
tol = 0.001,
top_n = 10
)Arguments
- x
Output from
estimate_bias()orfit_mfrm().- diagnostics
Optional output from
diagnose_mfrm()(used whenxis fit).- facet_a
First facet name (required when
xis fit andinteraction_facetsis not supplied).- facet_b
Second facet name (required when
xis fit andinteraction_facetsis not supplied).- interaction_facets
Character vector of two or more facets.
- max_abs
Bound for absolute bias size when estimating from fit.
- omit_extreme
Omit extreme-only elements when estimating from fit.
- max_iter
Iteration cap for bias estimation when
xis fit.- tol
Convergence tolerance for bias estimation when
xis fit.- top_n
Maximum number of iteration rows to keep in preview-oriented summaries. The full iteration table is always returned.
Value
A named list with:
table: iteration historysummary: one-row convergence summaryorientation_review: interaction-facet sign reviewsettings: resolved reporting optionsdirection_note: one-line interpretive note describing which direction the iteration moved (carried from the bias estimator; empty string when the underlying estimator does not emit one)recommended_action: one-line recommended action label (e.g."converged","increase max_iter"); empty string when the underlying estimator does not emit one
Details
This report focuses on the recalibration path used by estimate_bias().
It provides a package-native counterpart to legacy iteration printouts by
exposing the iteration table, convergence summary, and orientation review in
one bundle.
Examples
if (FALSE) { # interactive()
toy <- load_mfrmr_data("example_bias")
fit <- fit_mfrm(toy, "Person", c("Rater", "Criterion"), "Score", method = "JML", maxit = 30)
diag <- diagnose_mfrm(fit, residual_pca = "none")
out <- bias_iteration_report(fit, diagnostics = diag, facet_a = "Rater", facet_b = "Criterion")
summary(out)
}