Learn R Programming

cna (version 0.1-3)

cna-package: Coincidence Analysis (CNA)

Description

This package is an implementation of the Coincidence Analysis (CNA) introduced in Baumgartner (2009a, 2009b). In what follows, we give a general overview of the facilities in the package.

Arguments

Details

Starting with an input table of several binary factors, the analysis generally consists in the following main steps:

run the CNA to find sufficient conditions and solution formulas: cna, inspect the resulting solutions using the facilities described in condition and condTbl.

References

Baumgartner, Michael (2009a), Inferring Causal Complexity, Sociological Methods & Research, 38, 71?101. Baumgartner, Michael (2009b), Uncovering Deterministic Causal Structures: A Boolean Approach, Synthese, 170, 71?96.

Examples

Run this code
### extable is a truth table on which coincidence analysis will be applied
extable <- data.frame ( A=c(1,1,1,1,0,0,0,0), B=c(1,1,0,0,1,1,0,0),
C=c(1,1,1,1,1,1,0,0), D=c(1,0,1,0,1,0,1,0),
E=c(1,1,1,1,1,0,1,0))

### cna is the main fonction of this package
cna(extable)

### The final result is:
###                     condition consistency coverage
### (A + B <-> C) & (A + D <-> E)       1.000    1.000

Run the code above in your browser using DataLab