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

Individual Treatment Effects #869

Open
PrannoyLFC opened this issue Apr 1, 2024 · 1 comment
Open

Individual Treatment Effects #869

PrannoyLFC opened this issue Apr 1, 2024 · 1 comment

Comments

@PrannoyLFC
Copy link

Hi @kbattocchi ,

I used the following code to calculate the ATE for my panel data (around ~$18).

dml = DynamicDML(model_y=outcome_model,
model_t=treatment_model,
cv=2, discrete_treatment=True)

dml.fit(Y=Y, T=T, X=None, W=X, groups=groups)

Is it possible to get individual treatment effects too? Ie how much causal impact the treatment would gave in the outcome variable for each row of my data?

@ellpri
Copy link

ellpri commented Apr 2, 2024

@PrannoyLFC I think, in order to get the effect for each row, you need to use dml.effect(x_test)Reference

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