Description Usage Arguments Details Value Examples
(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.
1 2 |
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. |
Have a look to the code, not too difficult to follow. ??? Add some details with explained examples
a bn object comprising only normal variables
1 2 | rebastaba3k("RESET"); # (only for R checking)
print(rnorbn(g4n.gn7));
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.