powered by
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.
isIdentified(amat, x, y, type = "pdag")
TRUE if identified, FALSE if not.
TRUE
FALSE
adjacency matrix. See estimateEffect for its coding.
estimateEffect
(integer) positions of treatment variables in the adjacency matrix
(integer) positions of outcome variables in the adjacency matrix
string specifying the type of graph of amat. It can be DAG (type='dag') or MPDAG/CPDAG (type='pdag').
amat
type='dag'
type='pdag'
Emilija Perkovic. Identifying causal effects in maximally oriented partially directed acyclic graphs. In Uncertainty in Artificial Intelligence (UAI), 2020.
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)
Run the code above in your browser using DataLab