new8audit: produced a bn of kind 'audit' from a /gn/

Description Usage Arguments Details Value

Description

(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'.

Usage

1
new8audit(gn, proba=rbsb.lis0, scores=rbsb.lis0, def.len=5)

Arguments

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.
When no name can be found for a root node a uniform numcat is issued.

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'.

Details

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.

Value

The generated /bn/ object


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