cnProb-method | R Documentation |
Returns the list of conditional probabilities of nodes specified by which
parameter of a catNetwork
object. Node probabilities are reported in the following format. First, node name and its parents are given, then a list of probability values corresponding to all combination of parent categories (put in brackets) and node categories.
For example, the conditional probability of a node with two parents,
such that both the node and its parents have three categories,
is given by 27 values, one for each of the 3*3*3 combination.
cnProb(object, which=NULL) cnPlotProb(object, which=NULL)
object |
a |
which |
a |
A named list of probability tables.
N. Balov, P. Salzman
library(catnet) cnet <- cnRandomCatnet(numnodes=10, maxParents=3, numCategories=2) cnProb(object=cnet) cnPlotProb(object=cnet)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.