| build_misfit_casebook | R Documentation |
Build a case-level misfit review bundle
build_misfit_casebook(
fit,
diagnostics = NULL,
unexpected = NULL,
displacement = NULL,
administration_id = NULL,
wave_id = NULL,
top_n = 25
)
fit |
Output from |
diagnostics |
Optional output from |
unexpected |
Optional output from |
displacement |
Optional output from |
administration_id |
Optional scalar identifier describing the current administration or form. It is stored in row-level provenance and summary outputs when supplied. |
wave_id |
Optional scalar identifier for the current wave or occasion. It is stored in row-level provenance and summary outputs when supplied. |
top_n |
Maximum number of rows to keep in compact summary outputs. |
build_misfit_casebook() is a synthesis layer over package-native screening
outputs. It does not invent a new misfit statistic. Instead, it organizes
existing evidence families into one case-level review surface:
element-level Infit / Outfit MnSq misfit from diagnostics$fit
(rows whose Infit or Outfit MnSq falls outside the 0.5-1.5 Linacre
acceptance band)
strict marginal cell screens from diagnostics$marginal_fit$top_cells
strict pairwise screens from diagnostics$marginal_fit$pairwise$top_pairs
unexpected responses from unexpected_response_table()
displacement flags from displacement_table()
The result is an operational review bundle. It is not a formal adjudication
system, and repeated signals across evidence families should be prioritized
over any single isolated case row. In addition to raw case rows, the object
includes stable grouping views such as by_person, by_facet_level,
by_source_family, and by_wave to support operational triage. The
source_support component records which evidence families are currently
supported, caveated, or deferred under the active model.
An object of class mfrm_misfit_casebook.
Fit with fit_mfrm().
Build diagnostics with diagnose_mfrm().
Optionally build unexpected_response_table() and displacement_table()
yourself when you want custom thresholds before synthesizing the casebook.
For bounded GPCM, the helper is available with caveat. The casebook inherits
exploratory screening semantics from the underlying residual and strict
marginal sources; it should not be read as a formal inferential case test.
diagnose_mfrm(), unexpected_response_table(),
displacement_table(), plot_unexpected(), plot_displacement(),
plot_marginal_fit(), plot_marginal_pairwise()
toy <- load_mfrmr_data("example_core")
fit <- fit_mfrm(toy, "Person", c("Rater", "Criterion"), "Score",
method = "MML", model = "RSM", quad_points = 5)
diag <- diagnose_mfrm(fit, diagnostic_mode = "both", residual_pca = "none")
casebook <- build_misfit_casebook(fit, diagnostics = diag, top_n = 10)
summary(casebook)
casebook$top_cases
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.