| is_valid_adjustment_admg | R Documentation |
Checks whether Z is a valid adjustment set for estimating
the causal effect of X on Y in an ADMG using the generalized adjustment
criterion.
is_valid_adjustment_admg(
cg,
X = NULL,
Y = NULL,
Z = NULL,
X_index = NULL,
Y_index = NULL,
Z_index = NULL
)
cg |
A |
X, Y |
Node names (can be vectors for multiple treatments/outcomes). |
Z |
Conditioning set (character vector of node names). |
X_index, Y_index, Z_index |
Optional 1-based indices. |
Logical value indicating if the adjustment set is valid.
Other adjustment:
adjustment_set(),
all_adjustment_sets_admg(),
all_backdoor_sets(),
d_separated(),
is_valid_backdoor(),
minimal_separator()
# Classic confounding
cg <- caugi(
L %-->% X,
X %-->% Y,
L %-->% Y,
class = "ADMG"
)
is_valid_adjustment_admg(cg, X = "X", Y = "Y", Z = NULL) # FALSE
is_valid_adjustment_admg(cg, X = "X", Y = "Y", Z = "L") # TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.