Summarize report/table bundles in a user-friendly format
Source:R/api-methods.R
summary.mfrm_bundle.RdSummarize report/table bundles in a user-friendly format
Usage
# S3 method for class 'mfrm_bundle'
summary(object, digits = 3, top_n = 10, ...)Details
This method provides a compact summary for bundle-like outputs (for example: unexpected-response, fair-average, chi-square, and category report objects). It extracts:
object class and available components
one-row summary table when available
preview rows from the main data component
resolved settings/options
Branch-aware summaries are provided for:
mfrm_bias_count(branch = "original"/"facets")mfrm_fixed_reports(branch = "original"/"facets")mfrm_visual_summaries(branch = "original"/"facets")
Additional class-aware summaries are provided for:
mfrm_unexpected,mfrm_fair_average,mfrm_displacementmfrm_interrater,mfrm_facets_chisq,mfrm_bias_interactionmfrm_rating_scale,mfrm_category_structure,mfrm_category_curvesmfrm_measurable,mfrm_unexpected_after_bias,mfrm_output_bundlemfrm_residual_pca,mfrm_specifications,mfrm_data_quality,mfrm_fit_measuresmfrm_iteration_report,mfrm_subset_connectivity,mfrm_facet_statisticsmfrm_facets_contract_review,mfrm_facets_fit_review,mfrm_facets_fit_df_guide,mfrm_reference_benchmark
Interpreting output
overview: class, component count, and selected preview component.summary: one-row aggregate block when supplied by the bundle.preview: firsttop_nrows from the main table-like component.settings: resolved option values if available.validation_scope: internal-versus-external validation scope when summarizingmfrm_reference_benchmark.conquest_command_scope: ConQuest command-template scope when summarizingmfrm_conquest_overlap_bundle.conquest_output_contract: requested ConQuest outputs and review handoff when summarizingmfrm_conquest_overlap_bundle.normalization_scope: extracted-table normalization scope when summarizingmfrm_conquest_overlap_tables.review_scope: supplied-table review scope when summarizingmfrm_conquest_overlap_review.conquest_overlap_checks/population_policy_checks: specialized benchmark check previews when summarizingmfrm_reference_benchmark.
Typical workflow
Generate a bundle table/report helper output.
Run
summary(bundle)for compact QA.Drill into specific components via
$and visualize withplot(bundle, ...).
Examples
if (FALSE) { # \dontrun{
toy_full <- load_mfrmr_data("example_core")
toy_people <- unique(toy_full$Person)[1:12]
toy <- toy_full[toy_full$Person %in% toy_people, , drop = FALSE]
fit <- suppressWarnings(
fit_mfrm(toy, "Person", c("Rater", "Criterion"), "Score", method = "JML", maxit = 30)
)
t4 <- unexpected_response_table(fit, abs_z_min = 1.5, prob_max = 0.4, top_n = 5)
summary(t4)
diag <- diagnose_mfrm(fit, residual_pca = "none")
bias <- estimate_bias(fit, diag, facet_a = "Rater", facet_b = "Criterion", max_iter = 2)
t11 <- bias_count_table(bias, branch = "facets")
summary(t11)
} # }