remove_arcs {gmgm} | R Documentation |
Remove arcs from a Gaussian mixture graphical model
Description
This function removes arcs from a Gaussian mixture graphical model.
Usage
remove_arcs(gmgm, arcs)
Arguments
gmgm |
An object of class |
arcs |
A data frame containing the removed arcs. The column |
Value
The gmbn
or gmdbn
object after removing the arcs.
See Also
add_arcs
, add_nodes
,
relevant
, remove_nodes
,
rename_nodes
Examples
data(gmbn_body)
gmbn_1 <- remove_arcs(gmbn_body,
data.frame(from = c("HEIGHT", "AGE"),
to = c("FAT", "WAIST")))
data(gmdbn_air)
gmdbn_1 <- remove_arcs(gmdbn_air,
list(b_2 = data.frame(from = c("NO2", "TEMP"),
to = c("O3", "O3"), lag = c(1, 1)),
b_13 = data.frame(from = "TEMP", to = "O3",
lag = 1)))