relevant | R Documentation |
This function extracts the minimal sub-Gaussian mixture graphical model required to infer a subset of nodes (i.e. the sub-model relevant to these nodes). The nodes that do not contribute to inference are removed, which includes those that are d-separated from the inferred ones by the nodes whose values are observed, as well as the barren nodes (Druzdzel and Suermondt, 1994).
relevant(gmgm, nodes, nodes_obs = NULL, nodes_miss = NULL)
gmgm |
An object of class |
nodes |
A character vector containing the inferred nodes. |
nodes_obs |
A character vector containing the nodes whose values are observed. |
nodes_miss |
A character vector containing the nodes whose values are
missing. Note that if a node is neither in |
The gmbn
or gmdbn
object relevant to the subset of
nodes.
Druzdzel, M. J. and Suermondt, H. J. (1994). Relevance in Probabilistic Models: "Backyards" in a "Small World". In Working Notes of the AAAI 1994 Fall Symposium Series: Relevance, pages 60–63, New Orleans, LA, USA.
add_arcs
, add_nodes
,
remove_arcs
, remove_nodes
,
rename_nodes
data(gmbn_body) gmbn_1 <- relevant(gmbn_body, "AGE", nodes_obs = c("FAT", "HEIGHT", "WEIGHT"), nodes_miss = "GLYCO") data(gmdbn_air) gmdbn_1 <- do.call("gmdbn", gmdbn_air[c("b_1", "b_2")]) gmdbn_2 <- relevant(gmdbn_1, "O3", nodes_obs = "NO2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.