# NOT RUN {
# }
# NOT RUN {
mod <- mirt(Science, 1)
# single response pattern change using EAP information
RCI(mod, predat = c(1,2,3,2), postdat = c(1,2,2,1))
# WLE estimator
RCI(mod, predat = c(1,2,3,2), postdat = c(1,2,2,1), method = 'WLE')
# multiple respondents
RCI(mod, predat = Science[1:5,], postdat = Science[2:6,])
# include large-sample z-type cutoffs
RCI(mod, predat = Science[1:5,], postdat = Science[2:6,],
cutoffs = c(-1.96, 1.96))
############################
# Example where individuals take completely different item set pre-post
# but prior calibration has been performed to equate the items
dat <- key2binary(SAT12,
key = c(1,4,5,2,3,1,2,1,3,1,2,4,2,1,5,3,4,4,1,4,3,3,4,1,3,5,1,3,1,5,4,5))
mod <- mirt(dat, 1)
# with N=5 individual under investigation
predat <- postdat <- dat[1:5,]
predat[, 17:32] <- NA
postdat[, 1:16] <- NA
RCI(mod, predat, postdat)
# }
Run the code above in your browser using DataLab