| plot.irtc | R Documentation |
Base-graphics plots for a fitted model: "wright" (item difficulty
vs person ability map), "ability" (person ability histogram, one
panel per dimension), "quality" (item quality rating summary) and
"icc" (item characteristic curves; unidimensional models only).
The same figures are embedded in irtc_report reports.
## S3 method for class 'irtc'
plot(x, type = c("wright", "ability", "quality", "icc"),
lang = irtc_lang(), items = NULL, resp = NULL, ...)
x |
A fitted |
type |
Plot type; see Description. |
lang |
Label language, |
items |
For |
resp |
The response data; only needed when the model object does not store it (streaming engine). |
... |
Ignored. |
Invisibly, x.
irtc, irtc_report
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)
plot(mod, type = "wright", lang = "en")
plot(mod, type = "icc", lang = "en", items = 1:2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.