Are X and Y d-separated given Z?
d_separated.RdChecks whether every node in X is d-separated from every node
in Y given Z in a DAG.
Usage
d_separated(
cg,
X = NULL,
Y = NULL,
Z = NULL,
X_index = NULL,
Y_index = NULL,
Z_index = NULL
)Arguments
- cg
A
caugi_graphobject.- X, Y, Z
Node selectors: character vector of names, unquoted expression (supports
+andc()), orNULL. Use*_indexto pass 1-based indices. IfZisNULLor missing, no nodes are conditioned on.- X_index, Y_index, Z_index
Optional numeric 1-based indices (exclusive with
X,Y,Zrespectively).
See also
Other adjustment:
adjustment_set(),
all_backdoor_sets(),
is_valid_backdoor()