cnCatnetFromEdges: catNetwork from Edges

Description Usage Arguments Details Value Author(s) See Also

Description

Creates a catNetwork object from list of nodes and edges.

Usage

1
cnCatnetFromEdges(nodes, edges, numCategories=2)

Arguments

nodes

a vector of node names

edges

a list of node edges

numCategories

an integer, the number of categories per node

Details

The function uses a list of nodes and directional edges to create a catNetwork with specified (fixed) number of node categories. A random probability model is assigned, which can be changed later by cnSetProb for example. Note that cnSetProb takes a given data sample and changes both the node categories and their conditional probabilities according to it.

Value

A catNetwork object

Author(s)

N. Balov

See Also

cnNew, cnCatnetFromSif, cnSetProb



Search within the catnet package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.