Skip to content

cfid

Identification of Counterfactual Queries in Causal Models

v0.1.8 · Oct 27, 2025 · GPL (>= 3)

Description

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.

Downloads

285

Last 30 days

14559th

855

Last 90 days

3.7K

Last year

Trend: -9.2% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (1)

imports

Dependency Network

Dependencies Reverse dependencies R6causal cfid

Version History

new 0.1.8 Mar 10, 2026
updated 0.1.8 ← 0.1.7 diff Oct 26, 2025
updated 0.1.7 ← 0.1.6 diff Nov 26, 2023
updated 0.1.6 ← 0.1.4 diff Nov 12, 2023
updated 0.1.4 ← 0.1.2 diff Oct 25, 2022
new 0.1.2 Jun 9, 2021