# create a configuration matrix with 3 binary-level conditions
noflevels <- rep(2, 3)
createMatrix(noflevels)
# its implicant matrix, where "-1" stands for an eliminated condition
createMatrix(noflevels + 1) - 1
# create a configuration matrix, where the second condition has three levels
noflevels <- c(2, 3, 2)
createMatrix(noflevels)
# its implicants matrix
createMatrix(noflevels + 1) - 1
Run the code above in your browser using DataLab