Learn R Programming

dplbnDE (version 0.1.3)

get_family: Retrieve Families for a Given Node in Bayesian Network

Description

This function identifies and returns the family for a given node in a Bayesian network. The family is a set of nodes, which includes the node itself, its parents, and the class.

Usage

get_family(node, df, class.str)

Value

A vector containing the node and its family members.

Arguments

node

A node in the bayesian network.

df

An adjacency list representing the network, formatted as a data frame.

class.str

The name of the class node.