truth.table {QCA}R Documentation

Create a truth table for crisp sets

Description

For any number of conditions, there is a finite number of possible combinations of presence/absence. This function finds the observed combinations among all possible ones, prints the frequency of each observed combination and establishes the value for the outcome in this way:
- if all observed combinations have an outcome value of 0 (or 1), then the value for the outcome will be set to 0 (or 1)
- if, for any given combination, the outcome presents both 0s and 1s, then the value for the outcome will be a contradiction ("C")
- for all the other possible combinations, the outcome is missing and will be coded with "?"

Usage

truth.table(mydata, outcome = "", inside = FALSE, complete = FALSE,
            show.lines = FALSE)

Arguments

mydata the dataset we use for minimization
outcome the name of the outcome variable in the dataset
inside if this function is called inside the "qmcc" function, it doesn't do formatting and deletes the column with the corresponding rownames for each combination of conditions
complete prints the complete truth table, including the missing combinations
show.lines show the rownames from the original dataset for each combination of conditions

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

'qmcc', 'print', 'cat'

Examples

data(Osa)

# print the truth table
truth.table(Osa, outcome="OUT", show.lines=TRUE)

# print the complete truth table
truth.table(Osa, outcome="OUT", show.lines=TRUE, complete=TRUE)

[Package QCA version 0.1-1 Index]