| build_fixed_reports | R Documentation |
Build legacy-compatible fixed-width text reports
build_fixed_reports(
bias_results,
target_facet = NULL,
branch = c("facets", "original")
)
bias_results |
Output from |
target_facet |
Optional target facet for pairwise contrast table. |
branch |
Output branch:
|
This function generates plain-text, fixed-width output intended to be read in console/log environments or exported into text reports.
The pairwise section (Table 14 style) is only generated for 2-way bias runs.
For higher-order interactions (interaction_facets length >= 3), the function
returns the bias table text and a note explaining why pairwise contrasts were
skipped.
A named list with:
bias_fixed: fixed-width interaction table text
pairwise_fixed: fixed-width pairwise contrast text
pairwise_table: underlying pairwise data.frame
bias_fixed: fixed-width table of interaction effects.
pairwise_fixed: pairwise contrast text (2-way only).
pairwise_table: machine-readable contrast table.
interaction_label: facets used for the bias run.
Run estimate_bias().
Build text bundle with build_fixed_reports(...).
Use summary()/plot() for quick checks, then export text blocks.
For new reporting workflows, prefer bias_interaction_report() and
build_apa_outputs(). Use build_fixed_reports() when a fixed-width text
artifact is specifically required for a compatibility handoff.
estimate_bias(), build_apa_outputs(), bias_interaction_report(),
mfrmr_reports_and_tables, mfrmr_compatibility_layer
toy <- load_mfrmr_data("example_bias")
fit <- fit_mfrm(toy, "Person", c("Rater", "Criterion"), "Score", method = "JML", maxit = 25)
diag <- diagnose_mfrm(fit, residual_pca = "none")
bias <- estimate_bias(fit, diag, facet_a = "Rater", facet_b = "Criterion", max_iter = 2)
fixed <- build_fixed_reports(bias)
fixed_original <- build_fixed_reports(bias, branch = "original")
summary(fixed)
p <- plot(fixed, draw = FALSE)
p2 <- plot(fixed, type = "pvalue", draw = FALSE)
if (interactive()) {
plot(
fixed,
type = "contrast",
draw = TRUE,
main = "Pairwise Contrasts (Customized)",
palette = c(pos = "#1b9e77", neg = "#d95f02"),
label_angle = 45
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.