Build a subset connectivity report (preferred alias)
Source:R/api-reports.R
subset_connectivity_report.RdBuild a subset connectivity report (preferred alias)
Usage
subset_connectivity_report(
fit,
diagnostics = NULL,
top_n_subsets = NULL,
min_observations = 0
)Arguments
- fit
Output from
fit_mfrm().- diagnostics
Optional output from
diagnose_mfrm().- top_n_subsets
Optional maximum number of subset rows to keep.
- min_observations
Minimum observations required to keep a subset row.
Details
summary(out) is supported through summary().
plot(out) is dispatched through plot() for class
mfrm_subset_connectivity (type = "subset_observations",
"facet_levels", or "linking_matrix" / "coverage_matrix" /
"design_matrix" / "network"). The network route returns reusable node
and edge tables with draw = FALSE; drawing uses igraph when available.
Interpreting output
summary: number and size of connected subsets.subset table: whether data are fragmented into disconnected components.
facet-level columns: where connectivity bottlenecks occur.
Typical workflow
Run
subset_connectivity_report(fit).Confirm near-single-subset structure when possible.
Use results to justify linking/anchoring strategy.
Examples
if (FALSE) { # interactive()
toy <- load_mfrmr_data("example_core")
fit <- fit_mfrm(toy, "Person", c("Rater", "Criterion"), "Score", method = "JML", maxit = 30)
out <- subset_connectivity_report(fit)
summary(out)
p_sub <- plot(out, draw = FALSE)
p_design <- plot(out, type = "design_matrix", draw = FALSE)
p_net <- plot(out, type = "network", draw = FALSE)
p_sub$data$plot
p_design$data$plot
p_net$data$edges
out$summary[, c("Subset", "Observations", "ObservationPercent")]
}