cnMatParents: Network Parent Matrix

cnMatParents-methodR Documentation

Network Parent Matrix

Description

Returns the binary matrix of parent-child relations of a catNetwork object.

Usage

cnMatParents(object, nodeorder)

Arguments

object

a catNetwork or catNetworkFit object

nodeorder

an integer vector specifying the order of the nodes to be taken

Details

The resulting matrix has a value 1 at row i and column j if i-th node has j-th node as a parent, and 0 otherwise.

Value

A matrix

Author(s)

N. Balov, P. Salzman

See Also

cnParents, cnMatEdges

Examples

  library(catnet)
  cnet <- cnRandomCatnet(numnodes=10, maxParents=3, numCategories=2)
  cnMatParents(object=cnet)

catnet documentation built on Nov. 10, 2022, 5:08 p.m.