Learn R Programming

QCA (version 1.0-2)

factorize: Factorize a QCA Solution

Description

This function finds all combinations of common factors of literals in a solution.

Usage

factorize(sol.obj, splitmethod = "", sort.by.literals = FALSE, sort.by.number = FALSE)

Arguments

sol.obj
An object containting either the list of solutions, or a single character solution
splitmethod
The separator of the literals within a Boolean product
sort.by.literals
Logical, sort results by the largest number of literals as common factor
sort.by.number
Logical, sort results by the largest number of elements that have been factorized

References

C. C. Ragin. The Comparative Method: Moving beyond Qualitative and Quantitative Strategies. University of California Press, Berkeley, 1987.

See Also

eqmcc

Examples

Run this code
factorize("AB + AC + CD")

factorize("one*TWO*four + one*THREE + THREE*four", splitmethod = "*")

# factorize solution object directly
data(Emme)
sol <- eqmcc(Emme, outcome = "JSR", incl.cut1 = 0.9)
factorize(sol)

# sort by largest number of factoring literals
factorize(sol, sort.by.literals = TRUE)

# sort by largest number of factorized elements
factorize(sol, sort.by.number = TRUE)

Run the code above in your browser using DataLab