Plot a data-description object
Arguments
- x
Output from
describe_mfrm_data().- y
Reserved for generic compatibility.
- type
Plot type:
"score_distribution","facet_levels", or"missing".- main
Optional title override.
- palette
Optional named colors (
score,facet,missing).- label_angle
X-axis label angle for bar plots.
- draw
If
TRUE, draw using base graphics.- ...
Reserved for generic compatibility.
Details
This method draws quick pre-fit quality views from describe_mfrm_data():
score distribution balance
facet-level structure size
missingness by selected columns
Interpreting output
"score_distribution": bar chart of weighted observation counts per score category. Y-axis isWeightedN(sum of weights for each category). Categories with very few observations (< 10) may produce unstable threshold estimates. A roughly uniform or unimodal distribution is ideal; heavy floor/ceiling effects compress the measurement range."facet_levels": bar chart showing the number of distinct levels per facet. Useful for verifying that the design structure matches expectations (e.g., expected number of raters or criteria). Very large numbers of levels increase computation time and may require highermaxitinfit_mfrm()."missing": bar chart of missing-value counts per input column. Columns with non-zero counts should be investigated before fitting—rows with missing scores, persons, or facet IDs are dropped during estimation.
Typical workflow
Run
describe_mfrm_data()before fitting.Inspect
summary(ds)andplot(ds, type = "missing").Check category/facet balance with other plot types.
Fit model after resolving obvious data issues.
Examples
toy <- load_mfrmr_data("example_core")
ds <- describe_mfrm_data(toy, "Person", c("Rater", "Criterion"), "Score")
p <- plot(ds, draw = FALSE)