-
Notifications
You must be signed in to change notification settings - Fork 683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DRtester does not work for binary treatment AND binary outcome #875
Comments
Interestingly, if I remove discrete_treatment = True, and if I put a regressor for model_y (even though y is binary in my case), the code will run; but not sure if the result will be valid, it could be since model_y still estimates the probability y=1, which is the supposed behavior when discrete_treatment = True and with a classifier as model_y. Please let me know if the result would be valid in that case or if you see how to modify the code to make it work with discrete_treatment = True and with a classifier as model_y. |
Did you mean remove On an unrelated note, I would not use the |
Yes I meant removing discrete_outcome = True |
Yes, this is a bug on our end, but using a continuous outcome (even if it's really discrete) should be fine as a workaround. |
Hi, here is the code to reproduce the error:
Error message:
It does work when the outcome y is continuous.
The text was updated successfully, but these errors were encountered: