Skip to contents

The printed formulation is X indep_P Y | Z implies X indep_G Y | Z: an independence in the DISTRIBUTION must be reflected in the GRAPH.

Usage

morie_faithchk(dag, x, y, z = character(0), indep = TRUE)

Arguments

dag

directed edge matrix

x, y

the two nodes

z

conditioning set

indep

the observed distributional independence

Value

list(dseparated, indep, faithful, markov, violation)

Examples

dag <- rbind(c("x", "z"), c("z", "y"))
morie_faithchk(dag, "x", "y", "z", indep = TRUE)
#> $dseparated
#> [1] TRUE
#> 
#> $indep
#> [1] TRUE
#> 
#> $faithful
#> [1] TRUE
#> 
#> $markov
#> [1] TRUE
#> 
#> $violation
#> [1] FALSE
#>