Missing-value Fisher-z test
Perform a testwise-deletion Fisher-z independence test to data sets with missing values. With testwise-deletion, the test makes use of all data points that do not have missing values for the variables involved in the test.
Usage
from causallearn.utils.cit import CIT mv_fisherz_obj = CIT(data_with_missingness, "mv_fisherz") # construct a CIT instance with data and method name pValue = mv mv_fisherz cg = pc(data_with_missingness, 0.05, mv_fisherz)
explicitly calculating the p-value of a test: then you need to declare the
mv_fisherz_objand then call it as above, instead of using
mv_fisherz(data, X, Y, condition_set)as before. Note that now
causallearn.utils.cit.mv_fisherzis a string
"mv, “mv_fisherz”.
kwargs: e.g.,
cache_path. See Advanced Usages.
Returns
p: the p-value of the test.