Write standalone subset-connectivity files
Usage
write_mfrm_subset_file(
fit,
diagnostics = NULL,
path,
node_path = NULL,
format = c("csv", "tsv"),
digits = 4,
overwrite = FALSE,
include_nodes = TRUE
)Arguments
- fit
Output from
fit_mfrm().- diagnostics
Optional output from
diagnose_mfrm(). Supplying it avoids recomputing subset connectivity.- path
Output file path for the subset summary table.
- node_path
Optional output file path for the node-level subset table. When
NULLandinclude_nodes = TRUE, a sibling file ending in_nodes.csvor_nodes.tsvis created.- format
File format:
"csv"or"tsv". If omitted, inferred frompathwhen the extension is.csvor.tsv, otherwise"csv".- digits
Rounding digits for numeric columns.
- overwrite
If
FALSE, existing files are not overwritten.- include_nodes
If
TRUE, also write the node-level facet/level to subset membership table.
Details
Subsets are connected components in the observation design graph. The graph
links Person and all modeled facet levels that co-occur in an observation.
Multiple subsets mean the scale is not fully connected unless external
anchoring or a deliberate separate-calibration design justifies it.
Examples
if (FALSE) { # \dontrun{
toy <- load_mfrmr_data("example_core")
fit <- fit_mfrm(toy, "Person", c("Rater", "Criterion"), "Score",
method = "JML", maxit = 30)
diag <- diagnose_mfrm(fit, residual_pca = "none")
path <- tempfile(fileext = ".csv")
out <- write_mfrm_subset_file(fit, diag, path, overwrite = TRUE)
out$written_files
} # }