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.


einet documentation built on April 24, 2020, 1:06 a.m.