| all_adjustment_sets_admg | R Documentation |
Enumerates all valid adjustment sets for estimating the causal
effect of X on Y in an ADMG, up to a specified maximum size.
all_adjustment_sets_admg(
cg,
X = NULL,
Y = NULL,
X_index = NULL,
Y_index = NULL,
minimal = TRUE,
max_size = 3L
)
cg |
A |
X, Y |
Node names (can be vectors for multiple treatments/outcomes). |
X_index, Y_index |
Optional 1-based indices. |
minimal |
Logical; if |
max_size |
Integer; maximum size of sets to consider (default 3). |
A list of character vectors, each a valid adjustment set (possibly empty list if none exist).
Other adjustment:
adjustment_set(),
all_backdoor_sets(),
d_separated(),
is_valid_adjustment_admg(),
is_valid_backdoor(),
minimal_separator()
cg <- caugi(
L %-->% X,
X %-->% Y,
L %-->% Y,
M %-->% Y,
class = "ADMG"
)
all_adjustment_sets_admg(cg, X = "X", Y = "Y", minimal = TRUE)
# Returns {L} as minimal adjustment set
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.