remove_nodes {gmgm} | R Documentation |
Remove nodes from a Gaussian mixture graphical model
Description
This function removes nodes from a Gaussian mixture graphical model. If this model is a dynamic Bayesian network, the nodes are removed from each of its transition models.
Usage
remove_nodes(gmgm, nodes)
Arguments
gmgm |
An object of class |
nodes |
A character vector containing the removed nodes. |
Value
The gmbn
or gmdbn
object after removing the nodes.
See Also
add_arcs
, add_nodes
,
relevant
, remove_arcs
, rename_nodes
Examples
data(gmbn_body)
gmbn_1 <- remove_nodes(gmbn_body, c("FAT", "GLYCO"))
data(gmdbn_air)
gmdbn_1 <- remove_nodes(gmdbn_air, "TEMP")
[Package gmgm version 1.1.2 Index]