Description Usage Arguments Details Value Author(s) References See Also Examples
Create, test, or manipulate objects of type "causality.dag"
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | dag(nodes, edges, validate = TRUE)
is_valid_dag(graph)
is.dag(graph)
as.dag(graph)
## Default S3 method:
as.dag(graph)
## S3 method for class 'causality.graph'
as.dag(graph)
## S3 method for class 'causality.pdag'
as.dag(graph)
## S3 method for class 'causality.pattern'
as.dag(graph)
## S3 method for class 'causality.pag'
as.dag(graph)
|
nodes |
A character array of node names |
edges |
A m x 3 character matrix. Each row is an edge in the form of (node1, node2, edgetype), with node1 and node2 being in nodes. Valid edge types are listed below |
validate |
logical value to determine whether or not to check to see
if the graph is valid before returning it. Default is |
graph |
A graph to coerced or tested |
A causality DAG is a causality graph that is directed and acylic (hence the name DAG). DAGs are typically used to represent Bayesisan Networks and Structural Equation Models (SEMs).
is_valid_dag
checks to see if the input is a valid
"causality.dag". Specifically, it checks that the graph
is directed
and acyclic.
is.dag
tests whether or not an object has the class
"causality.dag"
dag
returns object of class "causality.dag", or an error
if the graph is invalid (assuming validate = TRUE
).
is_valid_dag
returns TRUE
or FALSE
depending
on whether or not the input is a valid "causality.dag".
is.dag
returns TRUE
or FALSE
.
Alexander Rix
Spirtes et al. “Causation, Prediction, and Search.”, Mit Press, 2001, p. 109.
Spirtes P. Introduction to causal inference. Journal of Machine Learning Research. 2010;11(May):1643-62.
Pearl, Judea. Causality. Cambridge university press, 2009.
Other causality classes: cgraph
, pattern
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.