moralize: Moral Graph

Description Usage Arguments Examples

Description

Graph obtained from x by (1) “marrying” (inserting an undirected ede between) all nodes that have common children, and then replacing all edges by undirected edges. If x contains bidirected edges, then all sets of nodes connected by a path containing only bidirected edges are treated like a single node (see Examples).

Usage

1

Arguments

x

the input graph, a DAG, MAG, or PDAG.

Examples

1
2
3
4
# returns a complete graph
moralize( "dag{ x->m<-y }" )
# also returns a complete graph
moralize( "dag{ x -> m1 <-> m2 <-> m3 <-> m4 <- y }" )

dagitty documentation built on May 2, 2019, 5:53 p.m.