Learn R Programming

PCBN (version 0.1.1)

remove_CondInd: Remove elements from a conditioning set by using conditional independence

Description

Remove elements from a conditioning set by using conditional independence

Usage

remove_CondInd(DAG, node, cond_set)

Value

a vector containing the nodes that cannot be removed from the conditioning set.

Arguments

DAG

Directed Acyclic Graph

node

node

cond_set

vector of nodes in conditioning set

Examples

Run this code

DAG = create_empty_DAG(3)
DAG = bnlearn::set.arc(DAG, 'U1', 'U3')
DAG = bnlearn::set.arc(DAG, 'U2', 'U3')

remove_CondInd(DAG = DAG, node = "U1", cond_set = c("U2"))
remove_CondInd(DAG = DAG, node = "U3", cond_set = c("U1"))

Run the code above in your browser using DataLab