Learn R Programming

sdnet (version 2.4.1)

cnParHist-method: Parenthood Histogram

Description

Calculates the histogram of parent-child edges for a catNetworkEvaluate object or a list of catNetworks

Usage

cnParHist(object)

Arguments

object

catNetworkEvaluate or list of catNetwork objects

Value

a numerical matrix

Examples

Run this code
# NOT RUN {
  cnet <- cnRandomCatnet(numnodes=20, maxpars=3, numcats=2)
  psamples <- cnSamples(cnet, 100)
  nodeOrder <- sample(1:20)
  nets <- cnSearchOrder(psamples, pert=NULL, 
	maxParentSet=2, maxComplexity=50, nodeOrder)
  cnParHist(object=nets)
# }

Run the code above in your browser using DataLab