allExpressions {QCA} | R Documentation |
There are 3^k-1 possible expressions (where k is the number of conditions) for a crisp-set procedure. Possible values for conditions are 1 (presence), 0 (absence) and NA (the condition being a subset of a larger one). The matrix grows exponentially so it is not reccomended to run this function for large number of conditions (say over 12) as the computer will quickly run out of resources.
allExpressions(no.conditions, inside=TRUE, arrange=FALSE)
no.conditions |
the number of conditions from the dataset |
inside |
if TRUE, returns the raw result matrix; if FALSE, print the result matrix without NAs |
arrange |
if TRUE the program tries hard to arrange the result matrix for visual inspection (however this takes a lot of additional time for large matrices) |
a matrix with 3^k-1 rows
Adrian Dusa
Romanian Social Data Archive
adi@roda.ro
Faculty of Sociology and Social Work, University of Bucharest
adi@sas.unibuc.ro
Ragin, Charles C. 2000 Fuzzy-set social science, Chicago: The University of Chicago Press
# for 3 conditions allExpressions(3, inside=FALSE) # the same matrix, this time arranged better allExpressions(3, inside=FALSE, arrange=TRUE)