Skip to contents

Get all independence relationships in a DAG, among the observed variables

Usage

dhvm_list_independences(dag)

Arguments

dhvm

A object of class `dhvm` i.e., a caugi dag with node attributes "latent"

Value

A list, each element representing an independence, given 0 or more other variables

Examples

dag <- dhvm(caugi(V1 %-->% V2 %-->% V3 %-->% V4, U %-->% V2 + V4))
dhvm_list_independences(dag)
#> [[1]]
#> [[1]]$indep
#> [1] "V1" "V3"
#> 
#> [[1]]$given
#> [1] "V2"
#> 
#>