| fair_average_table | R Documentation |
Build an adjusted-score reference table bundle
fair_average_table(
fit,
diagnostics = NULL,
facets = NULL,
totalscore = TRUE,
umean = 0,
uscale = 1,
udecimals = 2,
reference = c("both", "mean", "zero"),
label_style = c("both", "native", "legacy"),
omit_unobserved = FALSE,
xtreme = 0
)
fit |
Output from |
diagnostics |
Optional output from |
facets |
Optional subset of facets. |
totalscore |
Include all observations for score totals ( |
umean |
Additive score-to-report origin shift. |
uscale |
Multiplicative score-to-report scale. |
udecimals |
Rounding digits used in formatted output. |
reference |
Which adjusted-score reference to keep in formatted outputs:
|
label_style |
Column-label style for formatted outputs:
|
omit_unobserved |
If |
xtreme |
Extreme-score adjustment amount. |
This function wraps the package's adjusted-score calculations and returns
both facet-wise and stacked tables. Historical display columns such as
Fair(M) Average and Fair(Z) Average are retained for compatibility, and
package-native aliases such as AdjustedAverage,
StandardizedAdjustedAverage, ModelBasedSE, and FitAdjustedSE are
appended to the formatted outputs.
A named list with:
by_facet: named list of formatted data.frames
stacked: one stacked data.frame across facets
raw_by_facet: unformatted internal tables
settings: resolved options
stacked: cross-facet table for global comparison.
by_facet: per-facet formatted tables for reporting.
raw_by_facet: unformatted values for custom analyses/plots.
settings: scoring-transformation and filtering options used.
Larger observed-vs-fair gaps can indicate systematic scoring tendencies by specific facet levels.
Run fair_average_table(fit, ...).
Inspect summary(t12) and t12$stacked.
Visualize with plot_fair_average().
The stacked data.frame contains:
Facet name for this row.
Element label within the facet.
Observed raw-score average.
Model-adjusted reference average on the reported score scale.
Standardized adjusted reference average.
Package-native aliases for the three average columns above.
Estimated logit measure for this level.
Compatibility alias for the model-based standard error.
Package-native aliases for Model S.E. and Real S.E..
Fit statistics for this level.
diagnose_mfrm(), unexpected_response_table(), displacement_table()
toy <- load_mfrmr_data("example_core")
fit <- fit_mfrm(toy, "Person", c("Rater", "Criterion"), "Score", method = "JML", maxit = 25)
t12 <- fair_average_table(fit, udecimals = 2)
t12_native <- fair_average_table(fit, reference = "mean", label_style = "native")
summary(t12)
p_t12 <- plot(t12, draw = FALSE)
class(p_t12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.