| facets_output_file_bundle | R Documentation |
GRAPH= / SCORE=)Build a legacy-compatible output-file bundle (GRAPH= / SCORE=)
facets_output_file_bundle(
fit,
diagnostics = NULL,
include = c("graph", "score"),
theta_range = c(-6, 6),
theta_points = 241,
digits = 4,
include_fixed = FALSE,
fixed_max_rows = 400,
write_files = FALSE,
output_dir = NULL,
file_prefix = "mfrmr_output",
overwrite = FALSE
)
fit |
Output from |
diagnostics |
Optional output from |
include |
Output components to include: |
theta_range |
Theta/logit range for graph coordinates. |
theta_points |
Number of points on the theta grid for graph coordinates. |
digits |
Rounding digits for numeric fields. |
include_fixed |
If |
fixed_max_rows |
Maximum rows shown in fixed-width text blocks. |
write_files |
If |
output_dir |
Output directory used when |
file_prefix |
Prefix used for output file names. |
overwrite |
If |
Legacy-compatible output files often include:
graph coordinates for Table 8 curves (GRAPH= / Graphfile=), and
observation-level modeled score lines (SCORE=-style inspection).
This helper returns both as data frames and can optionally write CSV/fixed-width text files to disk.
summary(out) is supported through summary().
plot(out) is dispatched through plot() for class
mfrm_output_bundle (type = "graph_expected", "score_residuals",
"obs_probability").
A named list including:
graphfile / graphfile_syntactic when "graph" is requested
scorefile when "score" is requested
graphfile_fixed / scorefile_fixed when include_fixed = TRUE
written_files when write_files = TRUE
settings: applied options
graphfile: legacy-compatible wide curve coordinates (human-readable labels).
graphfile_syntactic: same curves with syntactic column names for programmatic use.
scorefile: observation-level observed/expected/residual diagnostics.
written_files: audit trail of files produced when write_files = TRUE.
For reproducible pipelines, prefer graphfile_syntactic and keep
written_files in run logs.
For new scripts, prefer category_curves_report() or
category_structure_report() for scale outputs, then use
export_mfrm_bundle() for file handoff. Use
facets_output_file_bundle() only when a legacy-compatible graphfile or
scorefile contract is required.
Fit and diagnose model.
Generate bundle with include = c("graph", "score").
Validate with summary(out) / plot(out).
Export with write_files = TRUE for reporting handoff.
category_curves_report(), diagnose_mfrm(), unexpected_response_table(),
export_mfrm_bundle(), mfrmr_reports_and_tables,
mfrmr_compatibility_layer
toy <- load_mfrmr_data("example_core")
fit <- fit_mfrm(toy, "Person", c("Rater", "Criterion"), "Score", method = "JML", maxit = 25)
out <- facets_output_file_bundle(fit, diagnostics = diagnose_mfrm(fit, residual_pca = "none"))
summary(out)
p_out <- plot(out, draw = FALSE)
class(p_out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.