seq_node_monitor {bnmonitor} | R Documentation |
Sequential node monitors
Description
Sequential marginal and conditional node monitors for a vertex of a Bayesian network.
Usage
seq_marg_monitor(dag, df, node.name)
seq_cond_monitor(dag, df, node.name)
Arguments
dag |
an object of class |
df |
a base R style dataframe |
node.name |
node over which to compute the monitor |
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 sequential marginal node monitor for the vertex
is defined as
Values of such that
can give an indication of a poor model fit for the vertex
after the first i-1 observations have been processed.
The sequential conditional node monitor for the vertex is defined as
where and
are computed with respect to
. Again, values of
such that
can give an indication of a poor model fit for the vertex
.
Value
A vector including the scores , either marginal or conditional.
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
seq_marg_monitor(chds_bn, chds[1:100,], "Events")
seq_marg_monitor(chds_bn, chds[1:100,], "Admission")