# Item bank generation with 500 items
genDichoMatrix(items = 500)
# Item bank generation with 100 items, 2PL model and log-normal distribution with
# parameters (0, 0.1225) for discriminations
genDichoMatrix(items = 100, model = "2PL", aPrior = c("lnorm", 0, 0.1225))
# A completely identical method as for previous example
genDichoMatrix(items = 100, aPrior = c("lnorm", 0, 0.1225),
cPrior = c("unif", 0, 0), dPrior = c("unif", 1, 1))
# Item bank generation with prespecified content balancing control options
cbList <- list(names = c("Group1", "Group2", "Group3", "Group4"),
props = c(0.2,0.4,0.3,0.1))
genDichoMatrix(items = 100, cbControl = cbList)
# Wrong definition of proportions
cbList <- list(names = c("Group1", "Group2", "Group3", "Group4"), props=c(2, 4, 3, 1))
genDichoMatrix(items = 100, cbControl = cbList)Run the code above in your browser using DataLab