cnFind-method {catnet} | R Documentation |
This is a model selection routine that finds a network in a set of networks for a given complexity.
cnFind(object, complexity = 0, alpha=0, factor=1) cnFindKL(object, numsamples)
object |
|
complexity |
an |
alpha |
a |
factor |
a |
numsamples |
an |
The complexity must be at least the number of nodes of the networks. If no network with the requested complexity exists in the list, then the one with the closest complexity is returned.
Alternatively, one can apply some standard model selection with alpha
="BIC" and alpha
=AIC.
A catNetwork
object.
N. Balov, P. Salzman
cnet <- cnRandomCatnet(numnodes=10, maxParents=2, numCategories=2) psamples <- cnSamples(object=cnet, numsamples=100) netlist <- cnSearchOrder(data=psamples, maxParentSet=2) bnet <- cnFind(object=netlist, complexity=cnComplexity(cnet)) bnet