DAGstructure-class: Class "DAGstructure" for storing the result of the construct...

Description Slots Methods Author(s) See Also Examples

Description

The class DAGstructure is the output of a call to construct. It stores the DAG structure that is induced by the given sets.

Slots

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.

Methods

istwoway

(DAGstructure): Indicates whether given DAGstructure has twoway relationships.

Author(s)

Rosa Meijer: r.j.meijer@lumc.nl

See Also

DAGmethod

Examples

 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)
  

cherry documentation built on May 7, 2021, 5:06 p.m.