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

How to examine propensity scores from X-Learner #6

Open
carlyls opened this issue Oct 6, 2022 · 1 comment
Open

How to examine propensity scores from X-Learner #6

carlyls opened this issue Oct 6, 2022 · 1 comment

Comments

@carlyls
Copy link

carlyls commented Oct 6, 2022

I really appreciate this package and your work on these meta-learners for treatment effect heterogeneity. I wanted to look more into the propensity scores estimated during the X-Learner with a random forest. I know the scores are used as a weight in the final CATE combination, but I wanted to see their distribution as well. I also was wondering if I could pre-specify propensity scores through the X_RF function, or if the estimation process is always a part of the method. Thank you!

@ee-jackson
Copy link

@theo-s @soerenkuenzel

I (& my colleague) have a similar query, so adding on to this issue.

As we understand it, for the X-Learner, it is possible to use a different set of covariates for predicting the propensity score (using a random forest) and for predicting the outcome variable, and thus the CATE. Within the X_RF() function, we can specify the covariates for the propensity score model using the e.forestry argument to specify the relevant.Variables.

But then when we go on to use the EtimateCate() function, we get the following error:

Error in testing_data_checker(object, newdata, object@hasNas) : newdata has 15 but the forest was trained with 4 columns.

How might you suggest that we overcome this? Thanks for all your work on this package, we would be very grateful for your response.

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

2 participants