cnMatParents: Network Parent Matrix

Description Usage Arguments Details Value Author(s) See Also Examples

Description

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

Usage

1
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

See Also

cnParents, cnMatEdges

Examples

1
2
  cnet <- cnRandomCatnet(numnodes=10, maxpars=3, numcats=2)
  cnMatParents(object=cnet)

sdnet documentation built on May 2, 2019, 12:43 a.m.