whichParentSetRows: Find relevants rows of a parentsTable.

Description Usage Arguments Details Value See Also

View source: R/parents-table.R

Description

Finds the rows of a parentsTable that correspond to parent sets that could be added as parents of node node, given some set of nodes nonDescendants that can be added as parents without creating a cycle in the graph.

Usage

1
2
3
  whichParentSetRows(node, nonDescendants,
    needOneOf = NULL, numberOfNodes, allRows,
    rowsThatContain, blankBit)

Arguments

node

The node. A numeric vector of length 1.

nonDescendants

The nodes that can be added as descendants of node. A numeric vector.

needOneOf

Nodes the MUST be included as parents of the node. This is NOT the same as the required/banned list; this is to allow the space to be partitioned.

numberOfNodes

The number of nodes in the network. A numeric vector of length 1.

allRows

The vector 1:nrow(parentsTables). (Supplied as an argument for possible speed gain)

rowsThatContain

A list of the form created by getRowsThatContain()

Details

Note that nodes that are banned do not need to be accounted for in the nonDescendants argument, since these should be accounted for when the parentsTable is created. Required nodes must be included in nonDescendants.

Value

A numeric vector.

See Also

enumerateParentsTable, scoreParentsTable


rjbgoudie/structmcmc documentation built on Nov. 3, 2020, 3:41 a.m.