# Loading the 'tcals' parameters
data(tcals)
# Selecting item parameters only
tcals <- as.matrix(tcals[,1:4])
# Item bank creation with 'tcals' item parameters
bank <- createItemBank(tcals)
# Selection of two arbitrary items (15 and 20) of the
# 'tcals' data set
it <- bank$itemPar[c(15,20),]
# Creation of a response pattern
x <- c(0,1)
# MEI for item 1, provisional ability level 0
EPV(bank, 1, x, 0, it)
# With prior standard deviation 2
EPV(bank, 1, x, 0, it, priorPar=c(0,2))Run the code above in your browser using DataLab