Faithful port of CAMUV._find_parents(). Scans variable subsets of
increasing size t (starting at 2); whenever any parent is identified,
t resets to 2, otherwise t grows until it exceeds
num_explanatory_vals. The residual matrix Y is updated in place each
time a variable gains a parent. A final pruning pass removes parents
whose residuals turn out to be independent of the child's residual.
Arguments
- X
data matrix
- maxnum_vals
maximum subset size (
num_explanatory_vals)- N
neighborhood list from
camuv_get_neighborhoods()- pk_forbidden
forbidden-cause list, or NULL
- independence
"hsic" or "fcorr"
- alpha
significance level (hsic only)
- ind_corr
rejection threshold (fcorr only)
- reg_fn
regressor function
