View source: R/api-plotting-anchor-qc.R
| plot_qc_pipeline | R Documentation |
Visualizes the output from run_qc_pipeline() as either a traffic-light
bar chart or a detail panel showing values versus thresholds.
plot_qc_pipeline(x, type = c("traffic_light", "detail"), draw = TRUE, ...)
x |
Output from |
type |
Plot type: |
draw |
If |
... |
Additional graphical parameters passed to plotting functions. |
Two plot types are provided for visual triage of QC results:
"traffic_light" (default): A horizontal bar chart with one row
per QC check. Bars are coloured green (Pass), amber (Warn), or red
(Fail). Provides an at-a-glance summary of the current QC review state.
"detail": A panel showing each check's observed value and its
pass/warn/fail thresholds. Useful for understanding how close a
borderline result is to the next verdict level.
Invisible verdicts tibble from the QC pipeline.
The pipeline evaluates up to 10 checks (depending on available diagnostics):
Convergence: did the optimizer converge?
Overall Infit: global information-weighted mean-square
Overall Outfit: global unweighted mean-square
Misfit rate: proportion of elements with |\mathrm{ZSTD}| > 2
Category usage: minimum observations per score category
Disordered steps: whether threshold estimates are monotonic
Separation (per facet): element discrimination adequacy
Residual PCA eigenvalue: first-component eigenvalue (if computed)
Displacement: maximum absolute displacement across elements
Inter-rater agreement: minimum pairwise exact agreement
Green (Pass): the check meets the current threshold-profile criteria.
Amber (Warn): borderline—monitor but not necessarily disqualifying. Review the detail panel to see how close the value is to the fail threshold.
Red (Fail): requires investigation before strong operational or interpretive claims are made from the current run. Common remedies include collapsing categories (for disordered steps), removing outlier raters (for misfit), or increasing sample size (for low separation).
The detail view shows numeric values, making it easy to communicate exact results to stakeholders.
run_qc_pipeline(), plot_qc_dashboard(),
build_visual_summaries(), mfrmr_visual_diagnostics
toy <- load_mfrmr_data("study1")
fit <- fit_mfrm(toy, "Person", c("Rater", "Criterion"), "Score",
method = "JML", maxit = 25)
qc <- run_qc_pipeline(fit)
plot_qc_pipeline(qc, draw = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.