cfid 0.2.0
- Fixed several issues in the ID* and IDC* algorithms that could
result in non-identifiable conditional counterfactual queries being
reported as identifiable and vice versa, and in incorrect identifying
functionals. Thanks to Sifei Li and Fabio Zanasi for reporting the
issues.
- ID* now assigns each summation variable of the counterfactual graph
a value that differs from the observed and intervened values of the same
variable. Previously such conflicts could go undetected.
- Line 4 of IDC* now adds the intervention only to the descendants of
the conditioning variable in the counterfactual graph, including the
descendants among the remaining conditioning variables, and checks
d-separation conditionally on the remaining conditioning variables.
- The identifiability of a conditional query no longer depends on the
order of the conditioning variables.
- The denominator of a conditional query is now identified from the
original conditioning conjunction instead of its counterfactual graph
representation.
- Summation variables that appear in the interventions of a term are
now correctly denoted as summation variables in the output
formulas.
- Counterfactual variables with several interventions are no longer
confused with each other when the intervention values form a sequence
(e.g.,
y_{x,z'} and y_{z,x'}), which
previously resulted in spurious inconsistency errors.
- Observed variables are no longer matched to vertices fixed by an
intervention with the same value when constructing the counterfactual
graph.
- Merged vertices of the counterfactual graph now inherit only the
parents of the remaining vertex, as in Shpitser and Pearl (2008), except
when checking the conditions of line 4 of IDC*.
- Variables of
gamma that are implied by
delta are now removed from conditional queries, and a query
with all variables of gamma implied by delta
has probability 1.
cfid 0.1.9
- Fixed two issues related to rare scenarios that resulted in the
query being incorrectly identified.
cfid 0.1.8
- Fixed an issue where some identifiable queries were incorrectly
deemed nonidentifiable when multiple counterfactual variables shared a
compatible subscript.
- Updated
igraph related functionality to use
non-deprecated functions.
cfid 0.1.7
- Fixed some formulas having incorrect variables indicated as
summation variables.
cfid 0.1.6
- Summation variables are now properly distinguished from query
variables in the output formulas of
identifiable().
- Inputs for
causal_effects() are now validated.
- Fixed a rare issue that could result in duplicate variables in the
output distributions.
- Fixed an issue where some identifiable but inconsistent queries were
reported as nonidentifiable.
cfid 0.1.5
- Added missing value assignments to the query for
causal_effect().
cfid 0.1.4
- Fixed an issue related to fixed variables in the counterfactual
graph.
- Fixed an issue related to counterfactual graph generation and
equivalence of random variables.
- Now uses lower case and snake case for classes.
- Added the ID and IDC algorithms for a full identification pipeline.
These algorithms can be used directly via
causal_effect().
- The syntax used by
dag() is now more flexible, allowing
edges within subgraph definitions and nested subgraphs.
- Dropped dependency on R version 4.1.0.
- Improved the package documentation.
- Changed the default value of
var_sep argument.
cfid 0.1.3
- An identifiable conditional counterfactual of the form
P(gamma)/P(gamma) will have value 1 instead of the formula.
- Fixed an error when identifying conditional counterfactuals that had
common counterfactual variables.
- Inputs for
identifiable() are now checked more
thoroughly.
- Added additional package tests.
- Further refined documentation in general.
- Fixed an internal indexing issue when no bidirected edges were
present in a DAG.
- Added documentation for
format.probability() with
examples.
- Added citation to Shpitser and Pearl (2007). “What counterfactuals
can be tested”.
- The package now correctly lists dependency on R >= 4.1.0.
- Added NEWS.
cfid 0.1.2
- Added package documentation.
- Improved documentation of existing functions.
- Added support for more graph export formats.
cfid v0.1.0