Description Usage Arguments Details Value
(bn) From a given gn, this function generates a /bn/ adapted for the
specific modeling associated to 'audit'. More precisely:
(*) all
nodes are integer.
(*) non root nodes are given as value the sum
of the values of their own parents by means of Dirac links.
(*)
root nodes are either numcat or the child of specific Dirichlet new
nodes according to the arguments 'proba' and 'scores'.
1 | new8audit(gn, proba=rbsb.lis0, scores=rbsb.lis0, def.len=5)
|
gn |
The gn to be transformed into bn. |
proba |
Named list. When a root name is found, the associated
component must be a numeric vector. When they are positive, a numcat
with these values for probas is generated. When at least one of them
is negative, a Dirichlet with these absolute values is generated. It
serves as the parent of the corresponding multinomial node. The
lengths must be consistent with possible scores. |
scores |
Named list. When a root name is found, the associated component must be a vector, the values of wich will be used as scores. When no name can be found for a root node, standard scores 1,2,... are used. When a root node have no proba neither scores, a length of def.len is attributed. |
def.len |
See 'scores'. |
More precisely, root nodes are transformed, and also their names are modified. Let 'A' and 'B' such root node in /gn/. It is possible that 'A' be transformed into {'A.multi','A'} and 'B' into {'B.Diric','B.multi','B'}. 'Diri' means Dirichlet, 'multi' means multinomial, in fact it is a 'numcat' node and original root node bears the score.
The generated /bn/ object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.