Skip to main content

Enumerate possible optimal adjustment sets (O-set-based IDA)

Source: R/identification.R, R/jlbind-wrappers.R

Description

Returns the optimal adjustment set for each locally valid orientation of x’s undirected neighbors in cg: the graph part of optimal-adjustment IDA. An entry is NULL when y is among the resulting parents of x for that orientation.

Usage

Arguments

cg A PDAG-family (PDAG, CPDAG, MPDAG) graph created with cgraph().
x, y Exposure and outcome node names.

Details

Entries are in the same order as those of possible_parent_sets() for x, so pairing the two element-wise recovers, for each orientation, both its parent set and its optimal adjustment set.

Value

List of character vectors, or NULL entries, one per locally valid orientation of x’s undirected neighbors.

References

Maathuis MH, Kalisch M, Bühlmann P (2009). “Estimating high-dimensional intervention effects from observational data.” The Annals of Statistics, 37(6A), 3133–3164.

Henckel L, Perković E, Maathuis MH (2022). “Graphical Criteria for Efficient Total Effect Estimation Via Adjustment in Causal Linear Models.” Journal of the Royal Statistical Society: Series B, 84, 579–599.

Witte J, Henckel L, Maathuis MH, Didelez V (2020). “On efficient adjustment in causal graphs.” Journal of Machine Learning Research, 21(246), 1–45.

Examples

cpdag <- cgraph(
  X1 %---% X2, X1 %---% X3, X1 %---% X4, X3 %-->% Y, X4 %-->% Y,
  class = "CPDAG"
)
possible_parent_sets(cpdag, "X1")
#> [[1]]
#> character(0)
#> 
#> [[2]]
#> [1] "X2"
#> 
#> [[3]]
#> [1] "X3"
#> 
#> [[4]]
#> [1] "X4"
possible_optimal_adjustment_sets(cpdag, "X1", "Y")
#> [[1]]
#> character(0)
#> 
#> [[2]]
#> character(0)
#> 
#> [[3]]
#> [1] "X3"
#> 
#> [[4]]
#> [1] "X4"