| exogenize | R Documentation |
Exogenize a graph by removing all ingoing edges to the set of nodes specified (i.e., make the nodes exogenous), as well as joining the parents of the nodes specified to the children of the nodes specified.
exogenize(cg, nodes)
cg |
A |
nodes |
A character vector of node names to exogenize. Must be a subset of the nodes in the graph. |
A caugi object representing the exogenized graph.
Other operations:
condition_marginalize(),
count_dags(),
dag_from_pdag(),
enumerate_dags(),
latent_project(),
meek_closure(),
moralize(),
mutate_caugi(),
normalize_latent_structure(),
skeleton()
cg <- caugi(A %-->% B, class = "DAG")
exogenize(cg, nodes = "B") # A, B
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.