Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

divyansha
Copy link
Contributor

@divyansha divyansha commented Sep 3, 2019

Wrote functions for visual balance checks and balance checks using placebo outcomes

@divyansha divyansha changed the title Visual Balance Check Balance Checks Sep 3, 2019
'''Get conditional mean for covariate of interested with respect to
value of running variable and treatment condition.
'''
trt_conditional_mean = trt.groupby('X').mean()
Copy link
Owner

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?

Copy link
Contributor Author

@divyansha divyansha Sep 13, 2019

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?

Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants