if (require("QCA")) {
# results presented in alphabetical order
factorize("one*TWO*four + one*THREE + THREE*four")
# to preserve a certain order of the set names
factorize("one*TWO*four + one*THREE + THREE*four",
snames = "ONE, TWO, THREE, FOUR")
factorize("~ONE*TWO*~FOUR + ~ONE*THREE + THREE*~FOUR",
snames = "ONE, TWO, THREE, FOUR")
# using pos - products of sums
factorize("a*c + a*D + b*c + b*D", pos = TRUE)
# using an object of class "qca" produced with eqmcc()
data(CVF)
pCVF <- eqmcc(CVF, outcome = "PROTEST", incl.cut = 0.8,
include = "?", use.letters = TRUE)
factorize(pCVF)
# using an object of class "deMorgan" produced with deMorgan()
factorize(deMorgan(pCVF))
}
Run the code above in your browser using DataLab