Skip to contents

Negative marginal log-likelihood of the model

Usage

global_monitor(dag, df, alpha = "default")

Arguments

dag

an object of class bn from the bnlearn package

df

a base R style dataframe

alpha

single integer. By default, number of max levels in df

Value

A numerical value

References

Cowell, R. G., Dawid, P., Lauritzen, S. L., & Spiegelhalter, D. J. (2006). Probabilistic networks and expert systems: Exact computational methods for Bayesian networks. Springer Science & Business Media.

Cowell, R. G., Verrall, R. J., & Yoon, Y. K. (2007). Modeling operational risk with Bayesian networks. Journal of Risk and Insurance, 74(4), 795-827.

Examples

global_monitor(chds_bn, chds, 3)
#> [1] 1409.985