# response patterns for five binary items that
# yield a total score of 3
y <- patterns(5, 2, 3)
# response patterns for 3 5-category items that
# yield a total score of at least 3
y <- patterns(3, 5, c(3:12))
Run the code above in your browser using DataLab