cnProb-method {catnet}R Documentation

Conditional Probability Structure

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

 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, P. Salzman

Examples

  library(catnet)
  cnet <- cnRandomCatnet(numnodes=10, maxParents=3, numCategories=2)
  cnProb(object=cnet)
  cnPlotProb(object=cnet)

[Package catnet version 1.15.7 Index]