data(blot)
#not run
#library(ltm)
#bblot.rasch <- rasch(blot, constraint = cbind(ncol(blot) + 1, 1)) #a 1PL model
#blot.2pl <- ltm(blot~z1) #a 2PL model
#do the same thing with functions in psych
#blot.fa <- irt.fa(blot) # a 2PN model
#plot(blot.fa)
Run the code above in your browser using DataLab