| displacement_table | R Documentation |
Compute displacement diagnostics for facet levels
displacement_table(
fit,
diagnostics = NULL,
facets = NULL,
anchored_only = FALSE,
abs_displacement_warn = 0.5,
abs_t_warn = 2,
top_n = NULL
)
fit |
Output from |
diagnostics |
Optional output from |
facets |
Optional subset of facets. |
anchored_only |
If |
abs_displacement_warn |
Absolute displacement warning threshold. |
abs_t_warn |
Absolute displacement t-value warning threshold. |
top_n |
Optional maximum number of rows to keep after sorting. |
Displacement is computed as a one-step Newton update:
sum(residual) / sum(information) for each facet level.
This approximates how much a level would move if constraints were relaxed.
A named list with:
table: displacement diagnostics by level
summary: one-row summary
thresholds: applied thresholds
table: level-wise displacement and flag indicators.
summary: count/share of flagged levels.
thresholds: displacement and t-value cutoffs.
Large absolute displacement in anchored levels suggests potential instability in anchor assumptions.
Run displacement_table(fit, anchored_only = TRUE) for anchor checks.
Inspect summary(disp) then detailed rows.
Visualize with plot_displacement().
The table data.frame contains:
Facet name and element label.
One-step Newton displacement estimate (logits).
Standard error of the displacement.
Displacement / SE ratio.
Current measure estimate and its standard error.
Number of observations involving this level.
Anchor metadata.
Logical; TRUE when displacement exceeds thresholds.
diagnose_mfrm(), unexpected_response_table(), fair_average_table()
toy <- load_mfrmr_data("example_core")
fit <- fit_mfrm(toy, "Person", c("Rater", "Criterion"), "Score", method = "JML", maxit = 25)
disp <- displacement_table(fit, anchored_only = FALSE)
summary(disp)
p_disp <- plot(disp, draw = FALSE)
class(p_disp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.