Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mb

Markov blanket of a node in a Bayesian network


Description

Markov blanket of a node in a Bayesian network.

Usage

mb(bn, node)

Arguments

bn

This can either be a bn object or the adjacency matrix.

node

A vector with one number indicating the node or variable whose Markov blanket is to be returned.

Details

The Markov blanket of a variable (node) is the set of its parents, children and spouses.

Value

parents

The parents of the node of interest.

children

The children of the node of interest.

spouses

The spouses of the node of interest. These are the other parents of the children of the node of interest.

markov.blanket

The Markov blanket of the node of interest. The collection of all the previous.

Author(s)

Michail Tsagris.

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

See Also

Examples

## Not run: 
y <- pchc::rbn3(1000, 10, 0.3)
tru <- y$G
x <- y$x
mod <- pchc(x)
pchc::bnplot(mod$dag)
G <- pchc::bnmat(mod$dag)
pchc::mb(G, 6)

## End(Not run)

pchc

Bayesian Network Learning with the PCHC and Related Algorithms

v0.5
GPL (>= 2)
Authors
Michail Tsagris [aut, cre]
Initial release
2021-03-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.