R Manual for QCA

The R Manual for QCA is a step-by-step guide to preparing and conducting a Qualitative Comparative Analysis (QCA) study in R. It provides a concise introduction to R, and covers data management, descriptive statistics, set-theoretic operations, calibration, the analysis of necessary conditions, truth table analysis, solution types, the visualization of results, cluster analysis, and robustness tests, using the QCA and SetMethods packages. For each step, the Manual introduces and discusses the respective R code. It is accompanied by an R Script that can be customized as needed and by two sample data sets, for the set-theoretic analysis and for robustness tests. The Manual accompanies the book Qualitative Comparative Analysis: An Introduction to Research Design and Application (Georgetown University Press, 2021) and can also be used on its own.

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.

Sign up for QCA updates

Sign up to receive an email when a new version of the R Manual comes out, the second edition of the QCA book is published, or when a new course is announced. You can unsubscribe at any time.

You will receive a confirmation email. Your address is only added once you confirm. This is processed by MailerLite, a GDPR-compliant platform (Ireland, servers in the EU). See also my privacy policy.

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.