| mutate_caugi | R Documentation |
caugi classMutate the caugi class from one graph class to another, if possible.
For example, convert a DAG to a PDAG, or a fully directed caugi of
class UNKNOWN to a DAG. Throws an error if not possible.
mutate_caugi(cg, class)
cg |
A |
class |
A character string specifying the new class. |
This function returns a copy of the object, and the original remains unchanged.
A caugi object of the specified class.
Other operations:
condition_marginalize(),
count_dags(),
dag_from_pdag(),
enumerate_dags(),
exogenize(),
latent_project(),
meek_closure(),
moralize(),
normalize_latent_structure(),
skeleton()
cg <- caugi(A %-->% B, class = "UNKNOWN")
cg_dag <- mutate_caugi(cg, "DAG")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.