enumerateParentsTableNode: Table of all possible parents of a node.

Description Usage Arguments Value See Also

View source: R/parents-table.R

Description

Creates a matrix, with each row being a parent set. The is is created subject to the supplied indegree restriction, and the the supplied required and banned restrictions.

Usage

1
2
  enumerateParentsTableNode(node, numberOfNodes,
    maxNumberParents, required, banned)

Arguments

node

A node

numberOfNodes

Number of nodes

maxNumberParents

The maximum indegree of the node.

required

A numeric vector. The nodes that must be included in every parent set for this node.

banned

A numeric vector. The nodes that must be excluded from every parent set for this node.

Value

A matrix with maxNumberParents columns. Each row is a possible parent set for node node, accounting for the restrictions given by required and banned. Entries that are NA indicate no parent. e.g. there is only one parent, the other entries will be NA.

See Also

enumerateParentsTable


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