mb: Create Markov Blanket

Description Usage Arguments Value

View source: R/causal-emergence.R

Description

Given a graph and a specified vector of internal node(s), returns the parents, the children, and the parents of the children of the internal node(s).

Usage

1
mb(graph, nodes = igraph::V(graph))

Arguments

graph

igraph or matrix object.

nodes

Numeric vector of vertices.

Value

A list of node descendants, parents, and neighbors.


anshuman21111/einet documentation built on Dec. 19, 2021, 3:40 a.m.