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

Counterfactual Values for Each Treatment in multi_arm_causal_forest #1478

Open
absbazz-43 opened this issue Jan 8, 2025 · 1 comment
Open
Labels

Comments

@absbazz-43
Copy link

Thank you for creating this excellent package! I am using multi_arm_causal_forest for my project and facing a challenge in obtaining counterfactual values for all treatments.

Currently, the grf package provides individual treatment effect (ITE) estimates by comparing each treatment with the control (reference group). However, I would like to retrieve the counterfactual values for all treatments for each individual, not just the estimates relative to the control group.

Is there a way to extract counterfactual values for all treatments directly using grf? If not, would it be possible to add this feature in future updates?

@erikcs
Copy link
Member

erikcs commented Jan 12, 2025

Hi @absbazz-43, you can use the $\tau(X_i)$ predictions from multi_arm_causal_forest, along with the propensity score and conditional mean estimates, to back out predictions of the counterfactual arm values $E[Y_i(k) | X_i]$, the docstring for that function has an example of this in the middle: https://grf-labs.github.io/grf/reference/multi_arm_causal_forest.html#examples

grf's sister package policytree also has a utility function, conditional_means that does the same, i.e. you could do policytree::conditional_means(mc.forest) where mc.forest is your fit multi-arm causal forest. This returns a matrix where the k-th colum contains predictions of $E[Y_i(k) | X_i]$.

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

No branches or pull requests

2 participants