
Build a facet statistics report (preferred alias)
Source:R/api-reports.R
facet_statistics_report.RdBuild a facet statistics report (preferred alias)
Arguments
- fit
Output from
fit_mfrm().- diagnostics
Optional output from
diagnose_mfrm()for the samefit. Mismatched or outdated diagnostics are rejected. Recompute diagnostics after refitting; the model itself does not need to be fitted again.- metrics
Numeric columns in
diagnostics$measuresto summarize.- ruler_width
Width of the fixed-width ruler used for
M/S/Q/Xmarks.- distribution_basis
Which distribution basis to keep in the appended precision summary:
"both"(default),"sample", or"population".- se_mode
Which standard-error mode to keep in the appended precision summary:
"both"(default),"model", or"fit_adjusted".
Details
summary(out) is supported through summary().
plot(out) is dispatched through plot() for class
mfrm_facet_statistics (type = "means", "sds", "ranges").
Interpreting output
facet-level means/SD/ranges of selected metrics (
Estimate, fit indices,SE).fixed-width ruler rows (
M/S/Q/X) for compact profile scanning.
Typical workflow
Run
facet_statistics_report(fit).Inspect summary/ranges for anomalous facets.
Cross-check flagged facets with fit and chi-square diagnostics. The returned bundle now includes:
precision_summary: facet precision/separation indices byDistributionBasisandSEModevariability_tests: fixed/random variability tests by facetse_modes: compact list of available SE modes by facet
Examples
# Supplementary workflow: run explicitly to keep routine checks brief.
# example("facet_statistics_report", run.dontrun = TRUE)
if (FALSE) { # \dontrun{
# Saved synthetic JML/RSM analysis of example_core.
# For your own data, fit a model first; see ?fit_mfrm.
example_fit <- readRDS(system.file("examples", "core-jml.rds", package = "mfrmr"))
fit <- example_fit$fit
out <- facet_statistics_report(fit)
summary(out)
p_fs <- plot(out, draw = FALSE)
p_fs$data$plot
} # }