View source: R/api-estimation.R
| plot.mfrm_data_description | R Documentation |
Plot a data-description object
## S3 method for class 'mfrm_data_description'
plot(
x,
y = NULL,
type = c("score_distribution", "facet_levels", "missing"),
main = NULL,
palette = NULL,
label_angle = 45,
draw = TRUE,
...
)
x |
Output from |
y |
Reserved for generic compatibility. |
type |
Plot type: |
main |
Optional title override. |
palette |
Optional named colors ( |
label_angle |
X-axis label angle for bar plots. |
draw |
If |
... |
Reserved for generic compatibility. |
This method draws quick pre-fit quality views from describe_mfrm_data():
score distribution balance
facet-level structure size
missingness by selected columns
A plotting-data object of class mfrm_plot_data.
"score_distribution": bar chart of weighted observation counts per
score category. Y-axis is WeightedN (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
higher maxit in fit_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.
Run describe_mfrm_data() before fitting.
Inspect summary(ds) and plot(ds, type = "missing").
Check category/facet balance with other plot types.
Fit model after resolving obvious data issues.
describe_mfrm_data(), plot()
toy <- load_mfrmr_data("example_core")
ds <- describe_mfrm_data(toy, "Person", c("Rater", "Criterion"), "Score")
p <- plot(ds, draw = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.