bug: estimate_ate() will return nan if backdoor is null.
Anditty opened this issue · comments
Anditty commented
For example, there is a dag looks like: [('T','B'),('B','Y'),('Z','Y'),('Z','T')]
Then if we want to use estimate_ate() to get the ate from T to Y. Then estimate_ate() will return nan since there is no backdoor from T to B.
Ankur Ankan commented
Yes, currently, only adjustment through backdoor is supported.
Anditty commented
I don't think it should return nan when backdoor is null.
If there is no backdoor, then we don't need to control anything. That is to say we can just calculate ATE by frontdoor.