influential_obs {bnmonitor} | R Documentation |
Influential observations
Description
Influence of a single observation to the global monitor
Usage
influential_obs(dag, data, alpha = "default")
Arguments
dag |
an object of class |
data |
a base R style dataframe |
alpha |
single integer. By default, the number of max levels in |
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. Define
.
The influence of an observation to the global monitor is defined as
High values of this index denote observations that highly contribute to the likelihood of the model.
Value
A vector including the influence of each observation.
See Also
influential_obs
, node_monitor
, seq_node_monitor
, seq_pa_ch_monitor
Examples
influential_obs(chds_bn, chds[1:100,], 3)
[Package bnmonitor version 0.2.0 Index]