Skip to contents

Uses the canonical adjustment set (observed ancestors of exposure or outcome, minus descendants of the exposure) and verifies it with Bayes-Ball d-separation on the graph with outgoing exposure edges removed — if the canonical set fails, no backdoor set exists (van der Zander, Liskiewicz & Textor 2014).

Usage

morie_dag_identify(dag)

Arguments

dag

A morie_dag.

Value

List with identified (logical), estimand ("backdoor" or NA), adjustment_set (character).

Examples

g <- morie_dag(c("z -> x", "z -> y", "x -> y"), "x", "y")
morie_dag_identify(g)
#> $identified
#> [1] TRUE
#> 
#> $estimand
#> [1] "backdoor"
#> 
#> $adjustment_set
#> [1] "z"
#>