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

ATE+Clustering #83

Open
juamiji1 opened this issue Dec 1, 2021 · 4 comments
Open

ATE+Clustering #83

juamiji1 opened this issue Dec 1, 2021 · 4 comments

Comments

@juamiji1
Copy link

juamiji1 commented Dec 1, 2021

Hey! two questions:

  1. is there an analogous function to average_treatment_effect() in R?
  2. Does GRFForestCausalRegressor allows clustering?

Thanks!

@crflynn
Copy link
Owner

crflynn commented Dec 1, 2021

  1. No, not yet.
  2. It should! The fit params should allow you to pass a cluster array. ref

@juamiji1
Copy link
Author

juamiji1 commented Dec 6, 2021

Thanks for answering!

  1. is there a way you recommend to calculate it in a setup with observational data?

@crflynn
Copy link
Owner

crflynn commented Dec 6, 2021

I don't have a recommendation. The best thing would be to port the implementation from R into python, which lives here: https://github.com/grf-labs/grf/blob/ad1b781f2a9dec120eb6e5c03e6e111556f81ada/r-package/grf/R/average_treatment_effect.R

@erikcs
Copy link

erikcs commented Dec 12, 2021

If you are in a setting with binary W you can have a look at the first expression for Gamma https://grf-labs.github.io/grf/articles/muhats.html to understand what the code above is doing. If you have clusters specified you'd want to adjust your sample std. of Gamma for that.

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

No branches or pull requests

3 participants