dowhy
dowhy copied to clipboard
Problems with multi-valued treatment and parameter 'evaluate_effect_strength'
Hi, I encountered two problems when using this library:
1.When my treatment is multi-valued (eg, 0,1,2,3...), how should I set the values of the two parameters ‘control_value’ and ‘treatment_value’ in the CausalModel.estimate_effect() function?
2.Another problem is that when I use the CausalModel.estimate_effect() function, when I set the parameter 'evaluate_effect_strength=True', the program has an error. The error is as follows:
Traceback (most recent call last):
File "D:/code/Causal_Inference/dowhy_test.py", line 27, in
For the first, you will need to enter the two values that you want to compare (e.g., 0 and 2). If you want to compare multiple values, then you can either 1) run the analysis multiple times, 2) if you believe there is some ordering between the discrete variables, then you can try passing it in as a continuous treatment and fitting a single model.
The second one seems like a bug. Will need some investigation.