| is_mag | R Documentation |
caugi graph a MAG?Checks if the given caugi graph is a
Maximal Ancestral Graph (MAG).
A MAG is an ancestral graph where no additional edge can be added without violating the ancestral graph constraints or changing the encoded independence model.
is_mag(cg, force_check = FALSE)
cg |
A |
force_check |
Logical; if |
A logical value indicating whether the graph is a MAG.
Other queries:
ancestors(),
anteriors(),
children(),
components(),
descendants(),
districts(),
edge_types(),
edges(),
exogenous(),
is_acyclic(),
is_admg(),
is_ag(),
is_caugi(),
is_cpdag(),
is_dag(),
is_empty_caugi(),
is_mpdag(),
is_pdag(),
is_simple(),
is_ug(),
m_separated(),
markov_blanket(),
neighbors(),
nodes(),
parents(),
posteriors(),
same_nodes(),
spouses(),
subgraph(),
topological_sort()
cg_ag <- caugi(
A %-->% B,
B %-->% C,
class = "AG"
)
is_mag(cg_ag) # TRUE (0 and 2 are m-separated by {B})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.