Skip to contents

Notation as printed: an overline on X drops every edge INTO X, an underline on Z drops every edge OUT OF Z. Rule 1 (ignore an observation): (Y indep Z | X, W) in G_Xbar. Rule 2 (intervention as observation): in G_Xbar,Zunder. Rule 3 (ignore an intervention): in G_Xbar,Zbar(W), where Z(W) is the subset of Z that are not ancestors of any W node in G_Xbar.

Usage

morie_docalc(dag, y, z, x = character(0), w = character(0))

Arguments

dag

directed edge matrix

y

outcome node

z

the single node being added or dropped

x

intervened nodes

w

further conditioning nodes

Value

list(rule1, rule2, rule3, nrules, zwsize)

Examples

dag <- rbind(c("x", "z"), c("z", "y"), c("u", "x"), c("u", "y"))
r <- morie_docalc(dag, y = "y", z = "z", x = "x")
str(r, max.level = 1)
#> List of 5
#>  $ rule1 : logi FALSE
#>  $ rule2 : logi TRUE
#>  $ rule3 : logi FALSE
#>  $ nrules: int 1
#>  $ zwsize: int 1