ptablesDirichlet: Draw ptables from product Dirichlet distribution.

Description Usage Arguments Value Examples

View source: R/sample.R

Description

Generate a conditional probability table from a product Dirichlet distribution.

Usage

1

Arguments

alpha

Vector containing shape parameters.

nlevels

The number of levels of each of the parents of the node.

Value

A table of the form required for simulate.bn.

Examples

1
ptablesDirichlet(c(1, 2), c(3, 4))

rjbgoudie/parental documentation built on May 27, 2019, 9:11 a.m.