Skip to content

cfid

0.1.8

Identification of Counterfactual Queries in Causal Models

1packages depend
3.5Kdownloads / year
97.0%test coverage
13/13checks pass

Overview

About
Maintained by Santtu TikkaFirst published 2021-06-105 releasesCRAN page ↗GitHub ↗

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

CRAN checks
13OK
Slowest check: 1.4 min · r-oldrel-macos-x86_64
Code health
Yes
Tests · ratio 0.27
97.0%
Coverage · measured lines
100%
Documentation · exports
0
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
10%

Downloads

3.5K
CRAN downloads in the past year
Rank #13,024 · ~10/day · ~296/mo
Daily download trend is not available in this view yet.
24130 days
77290 days
3.5K1 year
Compare downloads with other packages →
Also on158 r2u19 autocran10 c2d4u

Repository

Repository
11Stars
1Forks
0Open issues
0Open PRs
0Releases
60Commits
2Contributors
counterfactualcounterfactualsidentifiabilitycausal-modelscausal-inferencecausality-algorithmsdirected-acyclic-graph
License GPL-3.0 · 60 commits · Last activity 2025-12-11

Repository practices

Upstream repositoryBeta

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.

Continuous integration (1)
GitHub Actions
Docs source (1)
README.Rmd
Research and citation (1)
codemeta.json
Coverage (1)
Codecov
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)
Depends (0)
none
Imports (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

5 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.8Latest
    2025-10-27 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.1.7
    2023-11-27 · diff ↗
  • 0.1.6
    2023-11-13 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.1.4
    2022-10-26 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.1.2
    2021-06-10
  • R
    R 4.1.0 released · 2021-05-18

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")
Tikka, S. (2025). cfid: Identification of Counterfactual Queries in Causal Models (Version 0.1.8) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for cfid version 0.1.8 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy