probtrace: Function to calculate probability trace lines

Description Usage Arguments Author(s) References See Also Examples

View source: R/probtrace.R

Description

Given an internal mirt object extracted from an estimated model compute the probability trace lines for all categories.

Usage

1
probtrace(x, Theta)

Arguments

x

an extracted internal mirt object containing item information (see extract.item)

Theta

a vector (unidimensional) or matrix (unidimensional/multidimensional) of latent trait values

Author(s)

Phil Chalmers rphilip.chalmers@gmail.com

References

Chalmers, R., P. (2012). mirt: A Multidimensional Item Response Theory Package for the R Environment. Journal of Statistical Software, 48(6), 1-29. doi: 10.18637/jss.v048.i06

See Also

extract.item

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
mod <- mirt(Science, 1)
extr.2 <- extract.item(mod, 2)
Theta <- matrix(seq(-4,4, by = .1))
traceline <- probtrace(extr.2, Theta)

head(data.frame(traceline, Theta=Theta))


## End(Not run)

xzhaopsy/MIRT documentation built on May 29, 2019, 12:42 p.m.