powered by
The skeleton of a graph is obtained by replacing all directed edges with undirected edges.
skeleton(cg)
A caugi object representing the skeleton of the graph (UG).
caugi
A caugi object. Either a DAG or PDAG.
This changes the graph from any class to an Undirected Graph (UG), also known as a Markov Graph.
Other operations: condition_marginalize(), exogenize(), latent_project(), moralize(), mutate_caugi()
condition_marginalize()
exogenize()
latent_project()
moralize()
mutate_caugi()
cg <- caugi(A %-->% B, class = "DAG") skeleton(cg) # A --- B
Run the code above in your browser using DataLab