Find Network by Complexity

Share:

Description

This is a model selection routine that finds a network in a set of networks for a given complx.

Usage

1
2
 cnFind(object, complx = 0, alpha=0, factor=1)
 cnFindKL(object, numsamples)

Arguments

object

catNetworkEvaluate or dagEvaluate or list of catNetworks

complx

an integer, target complx

alpha

a character or numeric

factor

a numeric

numsamples

an integer

Details

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.

Value

A catNetwork object.

Author(s)

N. Balov

See Also

cnFindAIC, cnFindBIC

Examples

1
2
3
4
5
  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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.