Learn R Programming

catnet (version 1.08.2)

cnNodeMarginalProb-method: Node Marginal Probability

Description

For a given network and node, the function finds the marginal probability of that node.

Usage

cnNodeMarginalProb(object, node)

Arguments

object
a catNetwork
node
an integer, a node index in object

Value

  • a numeric vector

See Also

cnProb

Examples

Run this code
library(catnet)
  cnet <- cnRandomCatnet(numnodes=10, maxParents=3, numCategories=2)
  cnNodeMarginalProb(cnet, node=5)

Run the code above in your browser using DataLab