## create no-item overlap constraints with item pool depletion
## for 2 test forms with an item pool of 20 items
itemUsageConstraint(2, operator = "=", targetValue = 1,
itemIDs = 1:20)
## force certain items to be in the test, others not
usage1 <- itemUsageConstraint(2, operator = "<=", targetValue = 1,
itemIDs = paste0("item", 1:20))
usage2 <- itemUsageConstraint(2, operator = "=", targetValue = 1,
itemIDs = paste0("item", 1:20),
whichItems = c("item5", "item8", "item10"))
Run the code above in your browser using DataLab