cnNodeMarginalProb-method | R Documentation |
Marginal probability of a node, joint probability of a set of nodes or conditional probability of two sets of nodes.
cnNodeMarginalProb(object, node) cnJointProb(object, nodes) cnCondProb(object, x, y)
object |
a |
node |
an |
nodes |
a |
x,y |
|
cnJointProb
returns a matrix
with probability values for each combinations of categories arranged in columns. cnCondProb
calculates the value of P(X=x|Y=y).
a numerical or numerical matrix
N. Balov
cnProb
library(catnet) cnet <- cnRandomCatnet(numnodes=10, maxParents=3, numCategories=2) cnNodeMarginalProb(cnet, node=5) cnCondProb(cnet, x=c("N1"=1, "N2"=2), y=c("N3"=1, "N4"=2, "N5"=2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.