Skip to contents

This function simply calls the pcalg::gaussCItest() function from the pcalg package.

Usage

cor_test(x, y, conditioning_set, suff_stat)

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.

Value

A numeric, which is the p-value of the test.