
Detect variable pairs sharing an unobserved latent confounder
Source:R/lingam_rcd.r
extract_vars_sharing_confounders.RdFaithful port of rcd.py's extract_vars_sharing_confounders() (original
352-366 lines). Only pairs with no parent-child relationship in either
direction are considered.
Arguments
- X
(uncentered) data matrix
- P
parent list from
extract_parents()- cor_alpha
correlation-test significance level