R Manual for QCA

The R Manual for QCA is a step-by-step guide to running Qualitative Comparative Analysis in R. It accompanies Qualitative Comparative Analysis: An Introduction to Research Design and Application (Georgetown University Press, 2021) and can also be used on its own. All instructions are contained in the PDF, all code is included in the R script, and the script works with the two sample data sets.

Current version: 4.2 (September 2026). The files are also deposited at Harvard Dataverse. If you run into errors or if questions arise, please let me know.

How to cite

Mello, Patrick A. 2026. R Manual for QCA, version 4.2. Harvard Dataverse. https://doi.org/10.7910/DVN/KYF7VJ

R packages this manual uses

The manual uses the QCA package by Adrian Duşa and SetMethods by Ioana-Elena Oana and Carsten Q. Schneider, both available from CRAN. The manual further uses the R packages ggplot2 (Hadley Wickham), ggrepel (Kamil Slowikowski), gridExtra (Baptiste Auguie), and venn (Adrian Duşa). On robustness tests and cluster analysis, the manual draws on the discussion in Oana and Schneider (2024) and Oana, Schneider, and Thomann (2021). Cite these when working with the manual. Full references and the citation() commands are in Section 1.5 of the R Manual PDF and R script.