performMI: Run the external MI test

Description Usage Arguments Value

View source: R/ManageExternalInference.R

Description

Run the external MI test on a single item passed as evidence

Usage

1
2
performMI(net, evidence, nodes, envNodes, weights, number, filename,
  pause = 2)

Arguments

net

A network object

evidence

The evidence, in 1-indexed, NA=missing form.

nodes

The nodes to check mutual information of environment variables on, in 1-indexed form.

envNodes

The environment variables, in 1-indexed form.

weights

The weights, if a combined MI result desired. Should be one weight for each node, or NULL. Intended to be probabilities of nodes, though importance weights could be used as well.

number

The number of samples

filename

The full filename to write the results to.

pause

The duration in seconds to wait after making system call

appPath

The path to the EstimateMI.exe

Value

Nothing. But writes the MI matrix nodes vs envNodes. If a weights vector has been given, there will be an additional row which is a weighted combination of the other rows.


mickash/Adaptive-Bayesian-Networks documentation built on Nov. 14, 2019, 12:14 a.m.