rcd#
- causalbase.lingam.rcd(stats, *, method='deflation', order=None, pruning='adaptive_lasso', lambda_selection='bic')[source]#
Find the causal order from the cumulants, then estimate the coefficients.
- Parameters:
- statsCumulants
Output of
cumulants_from_sums().- method{“deflation”, “ratio”, “sort”}, optional
What follows each source; see the module docstring.
- order{3, 4} or None, optional
Which tau discriminator to use. Defaults to 4 when stats has fourth-order cumulants, else 3.
- pruning{“adaptive_lasso”, None}, default=”adaptive_lasso”
How the coefficients are estimated on the order;
Noneis OLS, which keeps every predecessor as a parent.- lambda_selection{“bic”, “fixed”}, default=”bic”
Penalty selection for the adaptive lasso.
- Returns:
- RCDResult
The estimated causal order and coefficient matrix.
- Raises:
- ValueError
If method, order, pruning or lambda_selection is not one of the allowed values, or
order=4is asked of third-order statistics.