Skip to contents

Writes one HTML file containing the summary statistics, diagnostic tables, and test-level plots. Images and styles are embedded in the file. Computed tailored item shifts and externally weighted secondary person measures can be included with the fitted-model results. For keyed fits with repeated person IDs, the report explains why distractor analysis is unavailable; the other model outputs remain available.

Usage

report_html(
  fit,
  file,
  title = "Rasch measurement analysis",
  dpi = 150,
  dif = NULL,
  bootstrap = NULL,
  dif_bootstrap = NULL,
  dimensionality = NULL,
  invariance = NULL,
  subtest = NULL,
  tailored = NULL,
  person_weights = NULL
)

Arguments

fit

A fitted object from rasch.

file

Path of the HTML file to write.

title

Report title.

dpi

Resolution of the embedded plots.

dif, bootstrap

Optional computed dif_anova and fit_bootstrap results from this fit, exported as run; the DIF table is otherwise recomputed at defaults when the fit carries person factors.

dif_bootstrap

Optional dif_bootstrap sensitivity analysis from this fit and DIF specification.

dimensionality

Optional computed plot_scree result from this fit. Supplying it keeps the table and figure identical to the analysis already run.

invariance

Optional computed frame_invariance result from an EFRM fit.

subtest

Optional computed dimensionality_test result from this fit. Supplying it keeps the item split and bootstrap calibration used in the analysis.

tailored

Optional computed tailored_analysis result from this ordinary dichotomous fit.

person_weights

Optional table returned by weighted_person_estimates. An explicit table takes precedence over a compatible result retained by the application.

Value

Invisibly, file.

Examples

set.seed(1)
d <- seq(-1.5, 1.5, length.out = 4)
X <- matrix(rbinom(80 * 4, 1, plogis(outer(rnorm(80), d, "-"))), 80, 4)
colnames(X) <- paste0("I", 1:4)
out <- file.path(tempdir(), "report.html")
report_html(rasch(X), out, dpi = 96)