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.
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.
Example (cna):
install.packages("cna")
library(cna)
cna(d.women)
cna(d.jobsecurity, ordering = "JSR", con = .85, cov = .85)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.
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)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.
Example (cnaOpt):
The causalHyperGraph package draws causal hypergraph plots from models output by configurational comparative methods such as Coincidence Analysis (CNA) or Qualitative Comparative Analysis (QCA).
Example (causalHyperGraph):