cor_test: Test for Vanishing Partial Correlations
Description
This function simply calls the pcalg::gaussCItest() function from the pcalg package.
Usage
cor_test(x, y, conditioning_set, suff_stat)
Value
A numeric, which is the p-value of the test.
Arguments
- x
Index of x variable.
- y
Index of y variable.
- conditioning_set
Index vector of conditioning variable(s), possibly NULL.
- suff_stat
Sufficient statistic; list with data,
binary variables and order.