powered by
Returns the binary matrix of parent-child relations of a catNetwork object.
catNetwork
cnMatParents(object, nodeorder)
a catNetwork or catNetworkFit object
catNetworkFit
an integer vector specifying the order of the nodes to be taken
vector
A matrix
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.
1
i
j
0
cnParents, cnMatEdges
cnParents
cnMatEdges
# NOT RUN { cnet <- cnRandomCatnet(numnodes=10, maxpars=3, numcats=2) cnMatParents(object=cnet) # }
Run the code above in your browser using DataLab