| irtc_quality | R Documentation |
Combines classical difficulty and discrimination
(irtc_ctt) with IRT item fit (irtc_itemfit)
into a four-level quality rating per item - "good",
"acceptable", "review", "revise" - with bilingual
reasons and advice that non-specialists can act on. Negative
discrimination (usually a wrong answer key) always leads to
"revise".
irtc_quality(mod, resp = NULL, thresholds = NULL)
irtc_quality_thresholds()
## S3 method for class 'irtc_quality'
print(x, lang = irtc_lang(), ...)
mod |
A fitted |
resp |
The response data; only needed when the model object does not store it (streaming engine). |
thresholds |
An optional named list overriding entries of
|
x |
An |
lang |
Output language, |
... |
Ignored. |
A data frame of class irtc_quality with columns item,
N, pvalue, discr, outfit, infit,
rating, reasons_en, reasons_zh, advice_en,
advice_zh, and attributes alpha (Cronbach's alpha) and
thresholds. irtc_quality_thresholds() returns the default
threshold list.
irtc, irtc_excel
set.seed(1)
theta <- rnorm(300)
resp <- as.data.frame(sapply(seq(-1, 1, length.out = 6), function(b) {
as.numeric(runif(300) < plogis(theta - b))
}))
resp$noise <- rbinom(300, 1, 0.5) # a broken item
mod <- irtc.mml(resp = resp, verbose = FALSE)
qual <- irtc_quality(mod)
qual[, c("item", "pvalue", "discr", "rating")]
print(qual, lang = "en")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.