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 can I calculate the treatment effect function in a double machine learning model? #887

Open
Wangpc-972 opened this issue Jun 4, 2024 · 1 comment

Comments

@Wangpc-972
Copy link

On this website, the fourth line of code is:

# Treatment effect function  
def exp_te(x):  
    return np.exp(2*x[0])

How can I obtain such an equation from real data? Or how can I calculate the 'True effect'?

Looking forward to your reply.
Thank you/

@kbattocchi
Copy link
Collaborator

In a real application, the true treatment effect will be unknown. The effect method of our estimators is how you'd estimate it; for example the notebook you're referencing shows the estimates of a few different estimators compared to the true effect after cell 10.

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