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