Build a scoped ConQuest-overlap bundle
Source:R/api-export-bundles.R
build_conquest_overlap_bundle.RdBuild a scoped ConQuest-overlap bundle
Usage
build_conquest_overlap_bundle(
fit = NULL,
case = c("synthetic_latent_regression"),
output_dir = NULL,
prefix = "conquest_overlap",
overwrite = FALSE,
quad_points = 7L,
maxit = 40L,
reltol = 1e-06
)Arguments
- fit
Optional output from
fit_mfrm()orrun_mfrm_facets(). When omitted, the helper builds the package's"synthetic_latent_regression"overlap case.- case
Overlap case used when
fit = NULL. Currently only"synthetic_latent_regression"is supported.- output_dir
Optional directory where the bundle files should be written. When
NULL, the helper returns the in-memory bundle only.- prefix
File-name prefix used when writing the bundle to disk.
- overwrite
If
FALSE, refuse to overwrite existing files.- quad_points
Quadrature points used when
fit = NULLand the overlap case is fit on the fly.- maxit
Maximum optimizer iterations used when
fit = NULL.- reltol
Relative convergence tolerance used when
fit = NULL.
Details
This helper prepares a narrow ConQuest comparison bundle for an RSM / PCM
latent-regression MML fit and records the mfrmr-side tables to compare
after an external ConQuest run. The supported overlap is intentionally
narrow:
ordered-response
RSM/PCMonly;binary responses only;
exactly one non-person facet, treated as the item facet;
active latent-regression
MML;exactly one numeric person covariate beyond the intercept;
complete person-by-item rectangular data.
The returned bundle standardizes the responses to {0, 1}, pivots them to a
one-row-per-person wide CSV, stores the corresponding person covariates, and
records the mfrmr estimates that should be compared externally.
The conquest_command component is a conservative starting template, not a
guaranteed version-invariant automation. The conquest_output_contract
component records which requested external output should feed each
normalized review table.
Use normalize_conquest_overlap_files() or
normalize_conquest_overlap_tables() and then review_conquest_overlap() only
after the matching ConQuest run has been executed externally and the relevant
output tables have been extracted. The bundle and command template alone are
not external validation evidence.
Comparison targets
regression slope: compare directly;
residual variance
sigma2: compare directly;item estimates: compare after centering because the Rasch location origin remains constraint-dependent;
case EAP estimates: compare as posterior summaries under the fitted population model.
Output
The returned object has class mfrm_conquest_overlap_bundle and includes:
summary: one-row scope summary with posterior-basis and population-model review fieldscomparison_targets: comparison rules for the exported tablesconquest_output_contract: requested ConQuest outputs and review handoffresponse_long: long-format binary response data used by the bundleresponse_wide: wide CSV-ready response matrix for the ConQuest templateperson_data: one-row-per-person covariate tableitem_map: mapping from exported response columns to original item levelsmfrmr_population: fitted population-model coefficients plussigma2mfrmr_item_estimates: fitted item estimates with centered valuesmfrmr_case_eap: posterior EAP summaries for the fitted personsconquest_command: conservative ConQuest command templatewritten_files: file inventory whenoutput_diris suppliedsettings: bundle settingsnotes: interpretation notes