cnProb: Conditional Probability Structure

Description Usage Arguments Value Author(s) Examples

Description

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.

Usage

1
2
 cnProb(object, which=NULL)
 cnPlotProb(object, which=NULL)

Arguments

object

a catNetwork object

which

a vector of indices

Value

A named list of probability tables.

Author(s)

N. Balov

Examples

1
2
3
  cnet <- cnRandomCatnet(numnodes=10, maxpars=3, numcats=2)
  cnProb(object=cnet)
  cnPlotProb(object=cnet)

sdnet documentation built on May 2, 2019, 12:43 a.m.