The data can be a matrix of character categories with rows specifying the node-variables and columns assumed to be independent samples, or a data.frame with columns specifying the nodes and rows being the samples.The data can be a sample generated from the network object, or may not, but in both cases, it must have the same nodes as the given network. Therefore, the rows, if data is a matrix, or
the columns, if data is a data.frame, should be named after the object's nodes.
The function searches in the class of networks contingent with the topological order
of the given network, object.
The result is a catNetworkEvaluate object that contains the set of optimal networks
within the specified complexity range, up to maxComplexity, and several distance measures between these networks and the object. See the description of cnCompare for more details about the used comparison criteria.
If maxParentSet is not specified, and so it is 0 by default, then the maximum number of parents of the object is used.
If maxComplexity is not specified, and so it is 0 by default, then the complexity of the object is used as a maximum value.
cnEvaluate function can be used for reducing a complex network to a less complex one.
This can be achieved by generating a large sample from the original network,
then evaluating it to obtain a list of networks with increasing complexity fitting this sample,
and finally, selecting a smaller network from this list.