| is_valid_backdoor | R Documentation |
Checks whether Z is a valid backdoor adjustment set for
X --> Y.
is_valid_backdoor(
cg,
X = NULL,
Y = NULL,
Z = NULL,
X_index = NULL,
Y_index = NULL,
Z_index = NULL
)
cg |
A |
X, Y |
Single node names. |
Z |
Optional node set for conditioning |
X_index, Y_index, Z_index |
Optional 1-based indices. |
Logical value indicating if backdoor is valid or not.
Other adjustment:
adjustment_set(),
all_adjustment_sets_admg(),
all_backdoor_sets(),
d_separated(),
is_valid_adjustment_admg(),
minimal_separator()
cg <- caugi(
C %-->% X,
X %-->% F,
X %-->% D,
A %-->% X,
A %-->% K,
K %-->% Y,
D %-->% Y,
D %-->% G,
Y %-->% H,
class = "DAG"
)
is_valid_backdoor(cg, X = "X", Y = "Y", Z = NULL) # FALSE
is_valid_backdoor(cg, X = "X", Y = "Y", Z = "K") # TRUE
is_valid_backdoor(cg, X = "X", Y = "Y", Z = c("A", "C")) # TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.