Coincidence Analysis
  • Overview
  • The Method
  • News
  • Literature
  • Software
  • Events
  • Projects
  • Community

Software

All CNA software is written for the R environment for statistical computing and graphics. It is open source and can be downloaded from the links provided below. To run it, the latest version of R must be installed along with a suitable editor, for example, RStudio.

Base package

cna

The cna package provides the base functionalities required to analyze data by means of CNA. The package vignette introduces to the theoretical foundation of CNA as well as to the main functions of the cna package.

CRAN: cran.r-project.org/package=cna · Vignette: cna.pdf · Source: github.com/cran/cna · Current version: 4.0.3 · Older versions

Example (cna):

install.packages("cna")
library(cna)
cna(d.women)
cna(d.jobsecurity, ordering = "JSR", con = .85, cov = .85)

Add-on package

frscore

The frscore package provides functions for calculating the fit-robustness of CNA models — a robustness measure tailor-made for configurational methods. CNA robustness scoring is discussed in Parkkinen & Baumgartner (2021), Robustness and Model Selection in Configurational Causal Modeling.

CRAN: cran.r-project.org/package=frscore · Source: github.com/cran/frscore · Current version: 0.5.2 · Older versions

Example (frscore):

library(cna)
library(frscore)
sols <- rean_cna(d.error, attempt = seq(1, 0.8, -0.1))
sols <- do.call(rbind, sols)
frscore(sols$condition)

frscored_cna(d.error)

Add-on package

cnaOpt

The cnaOpt package provides various functions for optimizing consistency and coverage scores of models of configurational comparative methods as CNA and QCA. The underlying theory is presented in Baumgartner & Ambühl (2021), Optimizing Consistency and Coverage in Configurational Causal Modeling.

CRAN: cran.r-project.org/package=cnaOpt · Source: github.com/cran/cnaOpt · Current version: 0.5.3 · Older versions

Example (cnaOpt):

library(cnaOpt)
conCovOpt(d.educate, "E")
cnaOpt(d.irrigate, "W")

Add-on package

causalHyperGraph

The causalHyperGraph package draws causal hypergraph plots from models output by configurational comparative methods such as Coincidence Analysis (CNA) or Qualitative Comparative Analysis (QCA).

CRAN: cran.r-project.org/package=causalHyperGraph · Source: github.com/cran/causalHyperGraph · Current version: 0.1.0 · Older versions

Example (causalHyperGraph):

library(cna)
library(causalHyperGraph)
x <- cna(d.women)
plot(x)

causalHyperGraph("(A*b + C*D*f <-> E)*(E*g + H*J <-> K)")

Coincidence Analysis

CNA is a configurational comparative method of causal inference and data analysis. This is the community hub for CNA users worldwide.

Contact

info@cna-method.com

Explore

  • The Method
  • News
  • Literature
  • Software
  • Events
  • Projects
  • Community