Computes an adjustment set for X -> Y in a DAG.
Usage
adjustment_set(
cg,
X = NULL,
Y = NULL,
X_index = NULL,
Y_index = NULL,
type = c("optimal", "parents", "backdoor")
)Details
Types supported:
"parents": \(\bigcup \mathrm{Pa}(X)\) minus \(X \cup Y\)"backdoor": an inclusion-minimal valid backdoor adjustment set, found in linear time as a minimal d-separator ofXandYin the proper backdoor graph (van der Zander, Liśkiewicz & Textor, 2019). Unlike"parents"(which always conditions on every parent ofX), this drops nodes that are not needed to block a backdoor path. Note that minimal is not the same as statistically optimal; use"optimal"for the efficient O-set."optimal": O-set (only for singlexand singley)
Examples
cg <- caugi(
C %-->% X,
X %-->% F,
X %-->% D,
A %-->% X,
A %-->% K,
K %-->% Y,
D %-->% Y,
D %-->% G,
Y %-->% H,
class = "DAG"
)
adjustment_set(cg, "X", "Y", type = "parents") # C, A
#> [1] "C" "A"
adjustment_set(cg, "X", "Y", type = "backdoor") # A
#> [1] "A"
adjustment_set(cg, "X", "Y", type = "optimal") # K
#> [1] "K"