-
Notifications
You must be signed in to change notification settings - Fork 23
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
Balance Checks #7
base: master
Are you sure you want to change the base?
Conversation
'''Get conditional mean for covariate of interested with respect to | ||
value of running variable and treatment condition. | ||
''' | ||
trt_conditional_mean = trt.groupby('X').mean() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@divyansha I'm worried how this will play out when X is continuous -- it could be very noisy, and in many cases it would simply be the mean of 1 observation. Could we instead cut the data into 100/500/etc bins?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, thanks for the insight. How about creating a default bin width of 100 (just picking a number, no good logic behind picking 100), and letting the user specify their desired bin width?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sounds good to me - maybe we could do a default of 30-50
Wrote functions for visual balance checks and balance checks using placebo outcomes