| facets_chisq_table | R Documentation |
Build facet variability diagnostics with fixed/random reference tests
facets_chisq_table(
fit,
diagnostics = NULL,
fixed_p_max = 0.05,
random_p_max = 0.05,
top_n = NULL
)
fit |
Output from |
diagnostics |
Optional output from |
fixed_p_max |
Warning cutoff for fixed-effect chi-square p-values. |
random_p_max |
Warning cutoff for random-effect chi-square p-values. |
top_n |
Optional maximum number of facet rows to keep. |
This helper summarizes facet-level variability with fixed and random chi-square indices for spread and heterogeneity checks.
A named list with:
table: facet-level chi-square diagnostics
summary: one-row summary
thresholds: applied p-value thresholds
table: facet-level fixed/random chi-square and p-value flags.
summary: number of significant facets and overall magnitude indicators.
thresholds: p-value criteria used for flagging.
Use this table together with inter-rater and displacement diagnostics to distinguish global facet effects from local anomalies.
Run facets_chisq_table(fit, ...).
Inspect summary(chi) then facet rows in chi$table.
Visualize with plot_facets_chisq().
The table data.frame contains:
Facet name.
Number of estimated levels in this facet.
Mean and standard deviation of level measures.
Fixed-effect chi-square test (null hypothesis: all levels equal). Significant result means the facet elements differ more than measurement error alone.
Random-effect test (null hypothesis: variation equals that of a random sample from a single population). Significant result suggests systematic heterogeneity beyond sampling variation.
Logical flags for significance.
diagnose_mfrm(), interrater_agreement_table(), plot_facets_chisq()
toy <- load_mfrmr_data("example_core")
fit <- fit_mfrm(toy, "Person", c("Rater", "Criterion"), "Score", method = "JML", maxit = 25)
chi <- facets_chisq_table(fit)
summary(chi)
p_chi <- plot(chi, draw = FALSE)
class(p_chi)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.