Position of the conditioning variables in the adjacency set
dm
Data matrix (rows: samples, columns: variables) with binary
entries
nlev
Vector with numbers of levels for each variable
verbose
If TRUE, detailed output is provided.
adaptDF
Lower the degrees of freedom by one for each zero
count. The value for the degrees of freedom cannot go below 1.
Value
The p-value of the test.
Details
The G^2 statistic is used to test for (conditional)
independence of X and Y given a set S (cann be NULL). If only
binary variables are involved, gSquareBin is a
specialized alternative to this function.
References
R.E. Neapolitan (2004).
Learning Bayesian Networks. Prentice Hall Series in Artificial
Intelligence. Chapter 10.3.1
See Also
gSquareBin for a (conditional) independence test
for binary variables. disCItest for a wrapper of this
function that can be easily included in skeleton,
pc or fci.