probtrace | R Documentation |
Given an internal mirt object extracted from an estimated model, or the single-group estimated model itself, compute the probability trace lines for all categories.
probtrace(x, Theta)
x |
either an extracted internal mirt object containing item information
(see |
Theta |
a vector (unidimensional) or matrix (unidimensional/multidimensional) of latent trait values |
Phil Chalmers rphilip.chalmers@gmail.com
Chalmers, R., P. (2012). mirt: A Multidimensional Item Response Theory Package for the R Environment. Journal of Statistical Software, 48(6), 1-29. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v048.i06")}
extract.item
, extract.group
mod <- mirt(Science, 1)
# single item probabilty tracelines for Item 2
extr.2 <- extract.item(mod, 2)
Theta <- matrix(seq(-4,4, by = .1))
traceline <- probtrace(extr.2, Theta)
head(data.frame(traceline, Theta=Theta))
# probability tracelines for all items in test
tracelines <- probtrace(mod, Theta)
head(tracelines)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.