| import_mirt_fit | R Documentation |
mirt fit to an mfrmr-compatible bundleExtracts item, step, and person parameters from a mirt::mirt()
fit and returns an mfrm_imported_fit object. The returned
object has the public slots summary, facets$person,
facets$others, steps, config, and source that the mfrmr
plot and table helpers expect. With compute_fit = TRUE the
importer also runs mirt::itemfit() and mirt::personfit() so
Infit / Outfit columns are populated, and synthesises a
mfrm_diagnostics-shape diagnostics slot consumable by
downstream plot helpers (Wright map, QC dashboard, etc.).
import_mirt_fit(
fit,
model = c("RSM", "PCM", "GPCM"),
item_facet = "Item",
compute_fit = FALSE
)
fit |
An object returned by |
model |
One of |
item_facet |
Name to assign to the item facet in the
imported bundle (default |
compute_fit |
Logical. When |
An mfrm_imported_fit object. Slots:
summaryModel / method / N / LogLik / AIC / BIC.
facets$personPerson ID, Estimate, SE, Extreme, plus
Infit / Outfit / OutfitZSTD / Zh when compute_fit = TRUE.
facets$othersItem-level estimates and slopes; with
compute_fit = TRUE, also Infit / Outfit / S_X2 / RMSEA / df
from mirt::itemfit().
stepsPer-item threshold parameters extracted from the
IRT parameterisation (b1, ..., b(K-1)).
configList with the resolved model and item_facet
used for the import; downstream plot and table helpers consult
this to dispatch correctly on the imported bundle.
diagnosticsmfrm_diagnostics-shape bundle when
compute_fit = TRUE; NULL otherwise.
sourceImported-from metadata.
Bundles bias / DIF / anchor / replay slots are explicitly not populated; full bidirectional import / export is planned for a future release.
import_tam_fit(), import_erm_fit()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.