Package: cfid 0.1.7

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

Authors:Santtu Tikka [aut, cre]

cfid_0.1.7.tar.gz
cfid_0.1.7.zip(r-4.5)cfid_0.1.7.zip(r-4.4)cfid_0.1.7.zip(r-4.3)
cfid_0.1.7.tgz(r-4.4-any)cfid_0.1.7.tgz(r-4.3-any)
cfid_0.1.7.tar.gz(r-4.5-noble)cfid_0.1.7.tar.gz(r-4.4-noble)
cfid_0.1.7.tgz(r-4.4-emscripten)cfid_0.1.7.tgz(r-4.3-emscripten)
cfid.pdf |cfid.html
cfid/json (API)
NEWS

# Install 'cfid' in R:
install.packages('cfid', repos = c('https://santikka.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/santikka/cfid/issues

On CRAN:

causal-inferencecausal-modelscausality-algorithmscounterfactualcounterfactualsdirected-acyclic-graphidentifiability

4.50 score 7 stars 1 packages 2 scripts 305 downloads 11 exports 0 dependencies

Last updated 4 months agofrom:bd1c99d1b1. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 10 2024
R-4.5-winOKNov 10 2024
R-4.5-linuxOKNov 10 2024
R-4.4-winOKNov 10 2024
R-4.4-macOKNov 10 2024
R-4.3-winOKNov 10 2024
R-4.3-macOKNov 10 2024

Exports:causal_effectcfconjcounterfactual_conjunctioncounterfactual_variabledagexport_graphfunctionalidentifiableimport_graphprobability

Dependencies:

Readme and manuals

Help Manual

Help pageTopics
The 'cfid' packagecfid-package
Causal Effect Identificationcausal_effect
Counterfactual Conjunction+.counterfactual_conjunction +.counterfactual_variable cf conj counterfactual_conjunction counterfactual_variable format.counterfactual_conjunction format.counterfactual_variable print.counterfactual_conjunction print.counterfactual_variable [.counterfactual_conjunction
Directed Acyclic Graphdag print.dag
Export Graphexport_graph
Identifying Functional of a Counterfactual Queryformat.functional functional print.functional
Identify a Counterfactual Queryidentifiable
Import Graphimport_graph
Symbolic Probability Distributionsformat.probability print.probability probability
Query Objectsprint.query query