Skip to contents

Mirrors morie.fn._dsep.d_separated; the counts come from the same path enumeration so a caller can see why the answer came out as it did.

Usage

morie_dseptest(dag, x, y, z = character(0))

Arguments

dag

directed edge matrix

x, y

the two nodes

z

conditioning set

Value

list(dseparated, npaths, nnodes, ncond)

Examples

dag <- rbind(c("x", "z"), c("z", "y"))
morie_dseptest(dag, "x", "y", "z")
#> $dseparated
#> [1] TRUE
#> 
#> $npaths
#> [1] 1
#> 
#> $nnodes
#> [1] 3
#> 
#> $ncond
#> [1] 1
#>