remove_nodes: Remove nodes from a Gaussian mixture graphical model

View source: R/remove_nodes.R

remove_nodesR 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 gmbn or gmdbn.

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")


gmgm documentation built on Sept. 9, 2022, 1:07 a.m.