| adjustment_set | R Documentation |
Computes an adjustment set for X -> Y in a DAG.
adjustment_set(
cg,
X = NULL,
Y = NULL,
X_index = NULL,
Y_index = NULL,
type = c("optimal", "parents", "backdoor")
)
cg |
A |
X, Y |
Node names. |
X_index, Y_index |
Optional numeric 1-based indices. |
type |
One of |
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 of X and Y in the proper backdoor
graph (van der Zander, Liśkiewicz & Textor, 2019). Unlike "parents" (which
always conditions on every parent of X), 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 single x and single y)
A character vector of node names representing the adjustment set.
Other adjustment:
all_adjustment_sets_admg(),
all_backdoor_sets(),
d_separated(),
is_valid_adjustment_admg(),
is_valid_backdoor(),
minimal_separator()
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
adjustment_set(cg, "X", "Y", type = "backdoor") # A
adjustment_set(cg, "X", "Y", type = "optimal") # K
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.