py-why / dowhy

DoWhy is a Python library for causal inference that supports explicit modeling and testing of causal assumptions. DoWhy is based on a unified language for causal inference, combining causal graphical models and potential outcomes frameworks.
https://www.pywhy.org/dowhy
MIT License
7.1k stars 934 forks source link

Categorical confounders #868

Closed barbarlo closed 1 year ago

barbarlo commented 1 year ago

Hi, I am a newbie both in causal inference and DoWhy. I have a very basic doubt: when dealing with categorical confounders, is it neccesary to convert them into dummies? I have two categorical confounders with 30 categories each and when working with dummies DoWhy gets stucked in the Identify step:

"WARNING:dowhy.causal_identifier.auto_identifier:Max number of iterations 100000 reached. Could not find a valid backdoor set. WARNING:dowhy.causal_identifier.auto_identifier:Backdoor identification failed."

If I don´t convert them into dummies everything seems to work properly.

Thanks a lot for your time, best regards.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 7 days since being marked as stale.