createMatrix {QCA}R Documentation

Create a base matrix for the truth table

Description

The truth table consists from all combinations of presence/absence of conditions (coded binary 1/0), and this function should be among the fastests to create a matrix with such combinations, using ideas inspired from expand.grid

Usage

createMatrix(no.conditions)

Arguments

no.conditions the number of conditions from the dataset

Author(s)

Adrian Dusa
Romanian Social Data Archive, University of Bucharest
adi@roda.ro

References

Ragin, Charles C. 1987 The Comparative Method. Moving beyond qualitative and quantitative strategies, Berkeley: University of California Press

See Also

'truthTable'

Examples

# create a matrix based on 3 conditions
createMatrix(3)

# the matrix has 2^3 = 8 rows

[Package QCA version 0.2-2 Index]