Learn R Programming

QCA (version 0.1-1)

all.expr: Create a matrix with all possible combinations of conditions

Description

There are $3^k-1$ possible expressions (where k is the number of conditions) for a crisp-set procedure. This function creates a matrix by row-binding the truth tables for all expressions.

Usage

all.expr(column.names, inside=FALSE)

Arguments

column.names
a vector of strings, the column names of the dataset
inside
if not inside the qmcc function, print the result matrix without NAs

Value

  • a matrix with $3^k-1$ rows

References

Ragin, Charles C. 2000 Fuzzy-set social science, Chicago: The University of Chicago Press

Examples

Run this code
column.names <- c("First", "Second", "Third")
all.expr(column.names)

Run the code above in your browser using DataLab