Description Usage Arguments Value Examples
(bn) From a gn object adds on all nodes numcat probability
distributions. The parameters for these are pseudo-randomly choosen
according to arguments 'nbcg', 'co' and 're'. For each beta
distribution, the two parameters will be taken equal. This explains
why there is only one interval for each of the two parameters.
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 name for the created object (description object). |
nbcg |
numbers of categories for each node are chosen with equal probabilities within the numbers nbcg[1]:nbcg[2]. |
co |
The first parameter when calling categ3betap is drawn with runif with these two values. |
re |
The second parameter when calling categ3betap is drawn with runif with these two values. |
a bn object comprising only categoric variables
1 2 | rebastaba3k("RESET"); # (only for R checking)
print(rcatbn(g4n.gn7), quoi="l", qui=9, proba=TRUE);
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.