causal_networkx.ci.GSquareCITest#

class causal_networkx.ci.GSquareCITest(data_type='binary')[source]#

Methods

test(df, x_var, y_var[, z_covariates, levels])

Abstract method for all conditional independence tests.

test(df, x_var, y_var, z_covariates=None, levels=None)[source]#

Abstract method for all conditional independence tests.

Parameters:

df : pd.DataFrame

_description_

x_var : Any

_description_

y_var : Any

_description_

z_covariates : Any, optional

_description_, by default None

Returns:

Tuple[float, float]

_description_

:rtype:py:data:Tuple[float, float]

Examples using causal_networkx.ci.GSquareCITest#