| d_separated | R Documentation |
Checks whether every node in X is d-separated from every node
in Y given Z in a DAG.
d_separated(
cg,
X = NULL,
Y = NULL,
Z = NULL,
X_index = NULL,
Y_index = NULL,
Z_index = NULL
)
cg |
A |
X, Y, Z |
Character vectors of node names, or |
X_index, Y_index, Z_index |
Optional numeric 1-based indices (exclusive
with |
TRUE if d-separated, FALSE otherwise.
Other adjustment:
adjustment_set(),
all_adjustment_sets_admg(),
all_backdoor_sets(),
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"
)
d_separated(cg, "X", "Y", Z = c("A", "D")) # TRUE
d_separated(cg, "X", "Y", Z = NULL) # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.