Learn R Programming

ddgraph (version 1.16.0)

mcMITest: Wrapper around the bnlearn mc-x2 test

Description

Implements the mc-mi test in format needed for pcalg.

Usage

mcMITest(x, y, S, suffStat)

Arguments

x
the index of the first variable
y
the index of the second variable
S
the conditioning set
suffStat
the sufficient statistics to do the test, in this case a list of one element: dm where the values matrix is stored

Value

Examples

Run this code
# test if a is independent of b
mcMITest(1, 2, NULL, suffStat)
# test if a is independent of b conditioned on c
mcMITest(1, 2, 3, suffStat)

Run the code above in your browser using DataLab