| all_backdoor_sets | R Documentation |
This function returns the backdoor sets up to size max_size,
which per default is set to 10.
all_backdoor_sets(
cg,
X = NULL,
Y = NULL,
X_index = NULL,
Y_index = NULL,
minimal = TRUE,
max_size = 3L
)
cg |
A |
X, Y |
Single node name. |
X_index, Y_index |
Optional 1-based indices (exclusive with name args). |
minimal |
Logical; if |
max_size |
Integer; maximum size of sets to consider (default 3). |
A list of character vectors, each an adjustment set (possibly empty).
Other adjustment:
adjustment_set(),
all_adjustment_sets_admg(),
d_separated(),
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"
)
all_backdoor_sets(cg, X = "X", Y = "Y", max_size = 3L, minimal = FALSE)
#> [[1]]
#> [1] "A"
#>
#> [[2]]
#> [1] "K"
#>
#> [[3]]
#> [1] "C" "A"
#>
#> [[4]]
#> [1] "C" "K"
#>
#> [[5]]
#> [1] "A" "K"
#>
#> [[6]]
#> [1] "C" "A" "K"
all_backdoor_sets(cg, X = "X", Y = "Y", max_size = 3L, minimal = TRUE)
#> [[1]]
#> [1] "A"
#>
#> [[2]]
#> [1] "K"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.