cfid: Identification of Counterfactual Queries in Causal Models

Facilitates the identification of counterfactual queries in structural causal models via the ID* and IDC* algorithms by Shpitser, I. and Pearl, J. (2007, 2008) <doi:10.48550/arXiv.1206.5294>, <>. Provides a simple interface for defining causal diagrams and counterfactual conjunctions. Construction of parallel worlds graphs and counterfactual graphs is carried out automatically based on the counterfactual query and the causal diagram. See Tikka, S. (2023) <doi:10.32614/RJ-2023-053> for a tutorial of the package.

Version: 0.1.7
Suggests: covr, dagitty, igraph, mockery, testthat (≥ 3.0.0)
Published: 2023-11-27
DOI: 10.32614/CRAN.package.cfid
Author: Santtu Tikka ORCID iD [aut, cre]
Maintainer: Santtu Tikka <santtuth at>
License: GPL (≥ 3)
NeedsCompilation: no
Materials: NEWS
CRAN checks: cfid results


Reference manual: cfid.pdf


Package source: cfid_0.1.7.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): cfid_0.1.7.tgz, r-oldrel (arm64): cfid_0.1.7.tgz, r-release (x86_64): cfid_0.1.7.tgz, r-oldrel (x86_64): cfid_0.1.7.tgz
Old sources: cfid archive

Reverse dependencies:

Reverse imports: R6causal


Please use the canonical form to link to this page.