isIdentified {eff2}R Documentation

Check if a total causal effect is identified

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

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

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)

[Package eff2 version 1.0.2 Index]