cor_test: Test for Vanishing Partial Correlations

View source: R/conditional-independence.R

cor_testR Documentation

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)

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; A list with two elements, "C" and "n", corresponding to the correlation matrix and number of observations.

Value

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


causalDisco documentation built on April 13, 2026, 5:06 p.m.