final_node_monitor {bnmonitor} | R Documentation |
Final node monitors
Description
Marginal and conditional node monitors over the last observation of the data for all vertices of a Bayesian network using the full dataset
Usage
final_node_monitor(dag, df)
Arguments
dag |
an object of class |
df |
a base R style dataframe |
Details
Consider a Bayesian network over variables and suppose a dataset
has been observed, where
and
is the i-th observation of the j-th variable.
Let
denote the marginal density of
after the first
observations have been processed. Define
where are the possible values of
. The marginal node monitor for the vertex
is defined as
Higher values of can give an indication of a poor model fit for the vertex
.
The conditional node monitor for the vertex is defined as
where and
are computed with respect to
. Again, higher values of
can give an indication of a poor model fit for the vertex
.
Value
A dataframe including the names of the vertices, the marginal node monitors and the conditional node monitors. It also return two plots where vertices with a darker color have a higher marginal z-score or conditional z-score, respectively, in absolute 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.
See Also
influential_obs
, node_monitor
, seq_node_monitor
, seq_pa_ch_monitor
Examples
final_node_monitor(chds_bn, chds[1:100,])