expr3bugs: returns the piece of Bugs code for standard distributions

Description Usage Arguments Value Examples

Description

(bn) Here according to the distribution, the parameters and the parents the bugs piece of code is established

Usage

1
expr3bugs(distri, bn, iid, zname, p1="", p2="", p3="", p4="")

Arguments

distri

ltype of the distribution.

bn

The Bayesian network under consideration

iid

The node of it under consideration

zname

The name under which it must be coded (possibly not its name when a transformation has to be added afterwards).

p1

First parameter of the distribution. This expression must already filtered with expr3cobu.

p2

Second parameter (if any) of the distribution.

p3

Third parameter (if any) of the distribution.

p4

Fourth parameter (if any) of the distribution.

Value

Character expression for the code

Examples

1
2
 rebastaba3k("RESET"); # (only for R checking)
 cat("To be added\n");

rebastaba documentation built on May 2, 2019, 5:24 p.m.