Writes a self-contained HTML report (no internet connection or extra software needed to open it) covering the plain-language summary, model fit, item statistics and parameters, graphics, a sum-score conversion table, optional item health cards and the R code needed to reproduce the analysis.
Usage
mv_report(
x,
file = "mirtverse-report.html",
title = "IRT analysis report",
author = NULL,
cards = NULL,
alpha = 0.01,
dif = NULL,
code = NULL,
open = interactive() && !isTRUE(getOption("mirtverse.dry_run"))
)Arguments
- x
a unidimensional model from
mirt::mirt(), or anmv_model_selectionobject fromselect_model()(the report then adds the model comparison and describes the recommended model).- file
path of the
.htmlfile to write.- title
report title.
optional author line.
- cards
logical; include an item health card for every item. Defaults to
TRUEfor tests of up to 40 items.- alpha
significance level for item misfit.
- dif
optional
mv_difobject fromdif(); adds a section on differential item functioning.- code
optional character vector of R code to show in the reproducibility section (the workbench fills this in automatically).
- open
logical; open the report in a browser afterwards.