| irtc_report | R Documentation |
Writes an analysis report with figures (Wright map, ability distribution,
item quality summary, item characteristic curves) and tables. Three
audience layouts are available: "decision" (a short executive
summary with recommendations), "survey" (a plain-language full
report) and "stat" (a complete technical report including item
parameters, item fit and model information). Every layout includes a
Model diagnostics section (convergence, information criteria with
interpretation, EAP reliability band, item-fit reading) and a Data
processing transparency section (weights summary, Q-matrix item
alignment, unobserved-category collapses, dropped items, scoring
summary, and - for "stat"/"survey" - the full cleaning
log), detailed for statisticians and condensed for other audiences.
HTML reports are fully self-contained single files (images embedded); Word reports require the optional officer package.
irtc_report(mod, file, format = NULL,
audience = c("survey", "decision", "stat"), lang = irtc_lang(),
resp = NULL, title = NULL, overwrite = FALSE, verbose = TRUE)
mod |
A fitted |
file |
Output file path ending in |
format |
|
audience |
Report layout; see Description. |
lang |
Output language, |
resp |
The response data; only needed when the model object does not store it (streaming engine). |
title |
Report title; a bilingual default is used when |
overwrite |
Logical: overwrite an existing file? |
verbose |
Logical: print a completion message? |
Invisibly, the output file path.
irtc, plain_summary,
irtc_excel, plot.irtc
set.seed(1)
theta <- rnorm(150)
resp <- as.data.frame(sapply(seq(-1, 1, length.out = 5), function(b) {
as.numeric(runif(150) < plogis(theta - b))
}))
mod <- irtc(resp, model = "1PL", verbose = FALSE)
file <- tempfile(fileext = ".html")
irtc_report(mod, file, audience = "decision", lang = "en",
verbose = FALSE)
file.exists(file)
unlink(file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.