Learn R Programming

gmgm (version 1.1.2)

remove_nodes: 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)

Value

The gmbn or gmdbn object after removing the nodes.

Arguments

gmgm

An object of class gmbn or gmdbn.

nodes

A character vector containing the removed nodes.

See Also

add_arcs, add_nodes, relevant, remove_arcs, rename_nodes

Examples

Run this code
data(gmbn_body)
gmbn_1 <- remove_nodes(gmbn_body, c("FAT", "GLYCO"))

data(gmdbn_air)
gmdbn_1 <- remove_nodes(gmdbn_air, "TEMP")

Run the code above in your browser using DataLab