Description Slots Methods Author(s) See Also Examples
The class DAGstructure is the output of a call to construct
. It stores the DAG structure that is induced by the given sets.
These slots are not meant to be directly accessed by the user.
parents
:Object of class "list". Stores the parents of each set, indicated by indices.
children
:Object of class "list". Stores the children of each set, indicated by indices.
sets
:Object of class "list". Stores the sets that are used for the DAG construction.
twoway
:Object of class "logical". Is TRUE if the final DAG structure has twoway logical relationships.
(DAGstructure): Indicates whether given DAGstructure has twoway relationships.
Rosa Meijer: r.j.meijer@lumc.nl
1 2 3 4 5 6 7 8 9 10 11 12 |
# Let us assume we have the following sets that we want to test:
sets <- list(c(1,2,3,4), c(1,2), c(2,3,4), c(2,3), 1, 2, 3, 4)
# The sets need to have names in order to be able to look up their p-values later
names(sets) <- c(1234, 12, 234, 23, 1, 2, 3, 4)
# Start by making the corresponding graph structure
struct <- construct(sets)
# Check whether the DAG has toway logical relations:
istwoway(struct)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.