rnorbn: creates a pseudo-random normal bn object from a given bn

Description Usage Arguments Details Value Examples

Description

(bn) From a gn object adds on all nodes normal probability distributions. The parameters for these are pseudo-randomly choosen according to arguments creg and erre.
Using this function with the same set.seed starting point (and the same request) must produce identical bn.
The gn can be any graph (without cycle) for instance designed by hand or resulting from rgn.

Usage

1
2
rnorbn(gn, description=new("des", name=gn@description@name), creg=c(0, 5),
	  erre=c(0, 1), ndec=1)

Arguments

gn

The starting gn object.

description

The description for the created object (des object). It can be a simple name.

creg

The mu and sigma parameters to draw the coefficient of regression (associated to the mean and the possible parents) with rnorm.

erre

The two limits to draw the standard deviation of the error with runif.

ndec

rounding argument for the parameter values.

Details

Have a look to the code, not too difficult to follow. ??? Add some details with explained examples

Value

a bn object comprising only normal variables

Examples

1
2
 rebastaba3k("RESET"); # (only for R checking)
 print(rnorbn(g4n.gn7));

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

Related to rnorbn in rebastaba...