cdt15 / lingam

Python package for causal discovery based on LiNGAM.
https://sites.google.com/view/sshimizu06/lingam
MIT License
356 stars 54 forks source link

The calculation of total effect is wrong in LongitudinalLiNGAM #136

Closed ikeuchi-screen closed 2 months ago

ikeuchi-screen commented 2 months ago

https://github.com/cdt15/lingam/blob/0cccccda96fdf7953c10c978e59bb6345c3edf36/lingam/longitudinal_lingam.py#L223

The path finding in the estimate_total_effect2 function was incorrect and did not calculate the correct causal effect.

ikeuchi-screen commented 2 months ago

Fixed in pull request #138