Learn R Programming

cfid (version 0.1.8)

Identification of Counterfactual Queries in Causal Models

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) , . 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.

Copy Link

Version

Install

install.packages('cfid')

Monthly Downloads

254

Version

0.1.8

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Santtu Tikka

Last Published

October 27th, 2025

Functions in cfid (0.1.8)

counterfactual_conjunction

Counterfactual Conjunction
export_graph

Export Graph
causal_effect

Causal Effect Identification
dag

Directed Acyclic Graph
import_graph

Import Graph
identifiable

Identify a Counterfactual Query
probability

Symbolic Probability Distributions
cfid-package

The cfid package
functional

Identifying Functional of a Counterfactual Query
query

Query Objects