conditional_entropy_query: Query a Bayesian Network to calculate conditional entropy of...

Description Usage Arguments

Description

Calculates the conditional entropy of a node given other nodes in a Bayesian network. Only works for discrete valued distributions fitted on data where variables are non-ordered factors class ("bn.fit.dnet"). Uses gRain package to convert to query the Bayesian network.

Usage

1
conditional_entropy_query(node, conditioning_nodes, bn_model, base = exp(1))

Arguments

node

name of the node of interest

bn_model

a fitted Bayesian network, an object of the class bn.fit

base

the base used in entropy's logarithm calculation. By setting base equal to the number of levels of the node variable, maximum entropy will be 1. Set to 2 for entropy units in bits.

vector

of node names to condition on.


robertness/bninfo documentation built on May 27, 2019, 10:32 a.m.