cfid
0.1.8Identification of Counterfactual Queries in Causal Models
Overview
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, 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) doi:10.32614/RJ-2023-053 for a tutorial of the package.
Install
Health
- OK2026-08-0513 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-08-0112 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 10%
Downloads
Repository
Repository practices
4 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/santikka/cfid on 2026-08-16.
Dependencies
Code & Tests
People & History
5 releases. Pick two to compare their code metrics. R releases are shown for context.
Package metadata
- First published
- 2021-06-10
- Total releases
- 5 / 5 yrs
- License
- GPL (>= 3) OSI
- Download size
- 39 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("cfid")This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.