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) , < https://jmlr.org/papers/v9/shpitser08a.html>. 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) for a tutorial of the package.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("cfid")

0.1.8 by Santtu Tikka, a year ago


https://github.com/santikka/cfid


Browse source code at https://github.com/cran/cfid


Authors: Santtu Tikka [aut, cre] (ORCID:


Documentation:   PDF Manual  


GPL (>= 3) license


Suggests covr, dagitty, igraph, mockery, testthat


Imported by R6causal.


See at CRAN