amalgamation {bnmonitor} | R Documentation |
Amalgamation of levels
Description
Computation of the diameter of children conditional probability tables when levels of a variable are merged.
Usage
amalgamation(bnfit, node)
Arguments
bnfit |
object of class |
node |
a node of |
Value
A list where each entry refers to a child of node
. For each child, the function reports the diameter resulting from the amalgamation of any pair of levels.
References
Leonelli, M., Smith, J. Q., & Wright, S. K. (2024). The diameter of a stochastic matrix: A new measure for sensitivity analysis in Bayesian networks. arXiv preprint arXiv:2407.04667.
Examples
amalgamation(synthetic_bn, "y1")
[Package bnmonitor version 0.2.0 Index]