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

Version 4.1 of the cna R package released on CRAN

News · October 28, 2026
cna on CRAN

Mathias Ambühl and Michael Baumgartner released version 4.1.0 of the cna R package on CRAN. The main addition is functional minimality, a non-redundancy constraint on causal structures that the package now makes available as an explicit option, as two stand-alone test functions and as two new detail measures.

Version 4.1.0 can be downloaded as usual:

https://CRAN.R-project.org/package=cna

A fourth dimension of redundancy elimination

CNA standardly eliminates redundancies along three dimensions. Minimal sufficiency removes redundant conjuncts from a sufficient condition, minimal necessity removes redundant disjuncts from a necessary condition, and structural minimality removes atomic MINUS-formulas that are redundant within a complex MINUS-formula. Zhang and Zhang (2023) propose a fourth dimension, which they call functional minimality: it removes redundant factors from the factor set on the basis of which an outcome is modeled.

Take an atomic MINUS-formula Ψ ↔︎ Y and let FΨ be the set of factors occurring in Ψ. The formula is functionally minimal if, and only if, FΨ contains no proper subset F′ of factors such that Y can be expressed as a Boolean function of F′ alone. A factor that can be dropped in this way is surplus, as the outcome can be modeled without it. Such surplus factors are what produce CNA solutions that account for an outcome on the basis of a factor set which already contains a more parsimonious explanation of the same outcome.

Publication

Zhang, Jiji and Kun Zhang (2023), “A New Minimality Condition for Boolean Accounts of Causal Regularities”, Erkenntnis 90(1), 67-86. https://doi.org/10.1007/s10670-023-00685-4

The air-conditioning scenario

Zhang and Zhang motivate the constraint with a concrete scenario involving two adjacent offices. Billy’s office is cooled by a central air conditioning system (A) and a window air conditioner (B); Cathy’s office by the same central system and a dehumidifier (C). Due to a construction flaw, Billy’s window air conditioner raises the humidity in Cathy’s office, so Cathy is comfortable (E2) if, and only if, the central system is on and her dehumidifier is on, or the central system is on and Billy’s window unit is off. Billy is comfortable (E1) if, and only if, the central system or his window unit is on:

(A + B ↔︎ E1) * (A·b + A·C ↔︎ E2)

Billy's and Cathy's offices: central air conditioning (A), Billy's window air conditioner (B), Cathy's dehumidifier (C), and the construction flaw connecting Billy's window unit to Cathy's comfort (E2)
Zhang and Zhang’s air-conditioning scenario: the construction flaw makes Billy’s window air conditioner (B) relevant to Cathy’s comfort (E2).

Analyzing the ideal data corresponding to that structure yields four csf. Two of them model Cathy’s comfort by A·b + A·C, the other two by A·C + b·E1. The latter are not functionally minimal, because E1 is redundant once A, C, and B are in the factor set. The new solution attribute fm_empirical flags exactly this difference:

options(width = 200)
aircon <- selectCases("(A + B <-> E1)*(A*b + A*C <-> E2)")
csf(cna(aircon, outcome = c("E1", "E2")))
  outcome condition                           con cov complexity cyclic fm_empirical
1 E1,E2   (A + B <-> E1)*(A*b + A*C <-> E2)     1   1          6  FALSE         TRUE
2 E1,E2   (A + B <-> E1)*(A*C + b*E1 <-> E2)    1   1          6  FALSE        FALSE
3 E1,E2   (B + E2 <-> E1)*(A*b + A*C <-> E2)    1   1          6  FALSE         TRUE
4 E1,E2   (B + E2 <-> E1)*(A*C + b*E1 <-> E2)   1   1          6   TRUE        FALSE

Setting func.minimal.only = TRUE removes the two csf that are not functionally minimal:

csf(cna(aircon, outcome = c("E1", "E2"),
        func.minimal.only = TRUE))
  outcome condition                          con cov complexity cyclic
1 E1,E2   (A + B <-> E1)*(A*b + A*C <-> E2)    1   1          6  FALSE
2 E1,E2   (B + E2 <-> E1)*(A*b + A*C <-> E2)   1   1          6  FALSE

Functional minimality on empirical data

Zhang and Zhang (2023) formulate functional minimality for idealized data and structures; func.minimal.only operationalizes it for the solution sets that CNA infers from empirical data. On the d.pban data, for example, the analysis with cov = .95 and maxstep = c(6, 6, 10) returns 14 csf by default:

ana.pban <- cna(d.pban, cov = .95, maxstep = c(6, 6, 10))
csf(ana.pban)
   outcome condition                                                  con   cov complexity cyclic fm_empirical
1  PB=1    C=1 + F=2 + C=0*F=1 + C=2*V=0 <-> PB=1                       1 0.952          6  FALSE         TRUE
2  PB=1    C=1 + F=2 + C=0*T=2 + C=2*V=0 <-> PB=1                       1 0.952          6  FALSE        FALSE
3  PB=1    C=1 + F=2 + C=2*F=0 + C=0*F=1 + F=1*V=0 <-> PB=1             1 0.952          8  FALSE         TRUE
4  PB=1    C=1 + F=2 + C=2*F=0 + C=0*T=2 + F=1*V=0 <-> PB=1             1 0.952          8  FALSE        FALSE
5  PB=1    C=1 + F=2 + C=0*F=1 + C=2*T=1 + T=2*V=0 <-> PB=1             1 0.952          8  FALSE        FALSE
6  PB=1    C=1 + F=2 + C=0*F=1 + T=1*V=0 + T=2*V=0 <-> PB=1             1 0.952          8  FALSE        FALSE
7  PB=1    C=1 + F=2 + C=0*T=2 + C=2*T=1 + T=2*V=0 <-> PB=1             1 0.952          8  FALSE        FALSE
8  PB=1    C=1 + F=2 + C=0*T=2 + T=1*V=0 + T=2*V=0 <-> PB=1             1 0.952          8  FALSE        FALSE
9  PB=1    C=1 + F=2 + C=2*F=0 + C=0*F=1 + F=1*T=1 + T=2*V=0 <-> PB=1   1 0.952         10  FALSE        FALSE
10 PB=1    C=1 + F=2 + C=2*F=0 + C=0*T=2 + F=1*T=1 + T=2*V=0 <-> PB=1   1 0.952         10  FALSE        FALSE
11 PB=1    C=1 + F=2 + C=0*F=1 + C=2*T=1 + F=0*T=2 + F=1*V=0 <-> PB=1   1 0.952         10  FALSE        FALSE
12 PB=1    C=1 + F=2 + C=0*F=1 + F=0*T=2 + F=1*V=0 + T=1*V=0 <-> PB=1   1 0.952         10  FALSE        FALSE
13 PB=1    C=1 + F=2 + C=0*T=2 + C=2*T=1 + F=0*T=2 + F=1*V=0 <-> PB=1   1 0.952         10  FALSE        FALSE
14 PB=1    C=1 + F=2 + C=0*T=2 + F=0*T=2 + F=1*V=0 + T=1*V=0 <-> PB=1   1 0.952         10  FALSE        FALSE

With func.minimal.only = TRUE two of them remain, and they score the same consistency and coverage as the twelve eliminated csf, which all model PB=1 on the basis of C, F, T and V:

csf(ana.pban, func.minimal.only = TRUE)
  outcome condition                                        con   cov complexity cyclic
1 PB=1    C=1 + F=2 + C=0*F=1 + C=2*V=0 <-> PB=1             1 0.952          6  FALSE
2 PB=1    C=1 + F=2 + C=2*F=0 + C=0*F=1 + F=1*V=0 <-> PB=1   1 0.952          8  FALSE

Zhang and Zhang (2023) contend that functional minimality helps to reduce model ambiguities while retaining the true data-generating structures. The availability of func.minimal.only makes it possible for the CNA community to put this to the test. Users are invited to experiment with functional minimality: does it indeed eliminate models that they would have discarded anyway, say based on theoretical background or case knowledge?

What is new in 4.1.0

  • New argument func.minimal.only in cnaControl() and csf() (default FALSE). If TRUE, only functionally minimal csf are returned.
  • New functions fm_structural() and fm_empirical() check functional minimality at the user level.
  • New detail measures fm_structural and fm_empirical, computed by detailMeasures() and requestable through the details argument; fm_empirical is a standard attribute of csf.
  • is.inus() gains an argument func.minim; detailMeasures() passes inus.def and inus.func.minim on to the computation.
  • randomCsf() builds functionally minimal csf only.
  • “Same as asf” has been removed from the standard output of print.cna, meaning that the csf table is always printed when requested.
  • Bug fixes, and a revised vignette and help pages, in particular section 5.5 on functional minimality; the reference sections now carry DOI links.

More details on functional minimality are documented in section 5.5 of the package vignette (cna.pdf) and in the package manual (reference manual).

← All news

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