isIdentified: Check if a total causal effect is identified

Description Usage Arguments Value References See Also Examples

View source: R/amenable.R

Description

The total causal effect from x to y is identified if and only if there is no possibly causal path from x to y that starts with an undirected edge.

Usage

1
isIdentified(amat, x, y, type = "pdag")

Arguments

amat

adjacency matrix. See estimateEffect for its coding.

x

(integer) positions of treatment variables in the adjacency matrix

y

(integer) positions of outcome variables in the adjacency matrix

type

string specifying the type of graph of amat. It can be DAG (type='dag') or MPDAG/CPDAG (type='pdag').

Value

TRUE if identified, FALSE if not.

References

Emilija Perkovic. Identifying causal effects in maximally oriented partially directed acyclic graphs. In Uncertainty in Artificial Intelligence (UAI), 2020.

See Also

estimateEffect

Examples

1
2
3
4
5
6
data("ex1")
# identified
isIdentified(ex1$amat.cpdag, c(3, 5), 7)
# not identified
isIdentified(ex1$amat.cpdag, 3, 7)
isIdentified(ex1$amat.cpdag, c(3, 5), 10)

eff2 documentation built on Oct. 1, 2021, 1:07 a.m.