Silent Optimistic Bias in QCA Robustness Testing: Loop Defects in SetMethods, an Algebraic Audit Inequality, and Evidence from Published Studies
The robustness test protocol of Oana and Schneider (2024, Sociological Methods & Research, 53(1), 57–88), implemented in the CRAN package SetMethods, has become the standard framework for evaluating the stability of Qualitative Comparative Analysis (QCA) solutions. A source-level audit of SetMethods 4.1 (with QCA 3.25 and admisc 0.40) uncovers a silent control-flow defect repeated nine times across five functions (rob.fit(), rob.xyplot(), rob.evaluation(), robust.intersections(), and robust.rank()): loops intended to fold over all alternative test solutions are written for (i in length(test_sol)) instead of for (i in seq_along(test_sol)). Whenever a researcher supplies three or more test solutions—the standard use case of the protocol—every intermediate specification is silently ignored in computing the minimal and maximal test sets (minTS, maxTS), the set-coincidence fit metrics (RF_SC_minTS, RF_SC_maxTS), the case-oriented ratios (RCR_typ, RCR_dev, RCC_Rank), and the robustness XY plot. We prove that this omission induces a systematic optimistic bias (RCR_bug >= RCR_true always) and derive a simple algebraic audit inequality (RF_SC_minTS <= RF_cov * RF_cons whenever the outcome calibration is held fixed) that detects corrupted outputs directly from published tables without accessing raw data. Applying this test to all eight downloadable open-access studies indexed in OpenAlex (2024–2026) reporting these parameters yields three mathematically confirmed violations (relative inflation of RF_SC_minTS between +7.7% and +23.0% over point ceilings, or +7.2% to +20.6% under worst-case rounding)—including a 2024 BMC Public Health article co-authored by the package maintainer herself—plus one probable violation. We also document three companion defects (rob.cases() failing under admisc >= 0.38 due to a scoping regression in admisc::negate(), a variable typo on line 57 of rob.ncutrange(), and a sign typo on line 52 of robust.rank()) and provide exact fixes and regression tests.
Authors
- Javier Núñez (ORCID: https://orcid.org/0009-0003-9770-4986)
Publication Details
- Journal
- SocArXiv (OSF Preprints)
- Published
- 2026-11-28
- DOI
- https://doi.org/10.31235/osf.io/5jrha_v1
- Primary Topic
- Qualitative Comparative Analysis Research
- Type
- preprint