Comments (4)
LinearDML (and most of our other estimators) assume that the effect is linear in (a featurization of) the treatment T.
effect(X, T0, T1)
will give you the effect (change in output) given covariates X of moving treatment assignment from T0 to T1.
If you don't featurize the treatment and have a single treatment, then effect(X, T0, T1)
will be linear in T1-T0
, so just using T0=0
and T1=1
is sufficient to compute the result for any other pair of treatments (since effect(X, T0, T1) == (T1-T0) * effect(X, 0, 1)
).
If you want to calculate a non-linear treatment effect, then the easiest way to do that is by using a treatment featurizer, which will expand the treatment you provide into multiple treatment columns - see this notebook for examples.
from econml.
My treatment is continuous and ranged from 0 to 80000, is that mean I need to set T0 = 0 and T1=80000 to get the ATE?
from econml.
In the case of continuous treatments there isn't a single ATE, there is (in general) an average treatment effect for each pair of source and target treatments, saying how the output would change on average if instead of treating everyone at level T0 you treat them at level T1. For linear models, this is just some factor times T1-T0, but for non-linear effects that's not necessarily true.
So in your case if you want to know how the average effect of moving from one extreme to the other, you could use effect(X=None, T0=0, T1=80000)
, but it really depends on exactly what you're trying to do (and if you use a treatment featurizer to model non-linear treatment effects, then it may not be the case that maximal treatment effect is achieved at the maximum treatment level, for example).
from econml.
Thanks!
from econml.
Related Issues (20)
- Refutation tests of ATE and heterogeneous effect HOT 2
- CausalForestDML with binary outcome and treatment HOT 2
- Binary treatment and Continuous outcome HOT 1
- Misleading warning for multiple treatments HOT 2
- Behavior with Discrete Treatments (discrete_treatment=True) HOT 2
- dowhy is no longer a dependency of the main econml package HOT 4
- IV Models: CATE or LATE? HOT 1
- Background Variable for Causal Analysis Object HOT 2
- Scaling Othrolearners using Ray HOT 6
- Only one CATE value is recorded from EconML (when called from DoWhy) HOT 1
- W and X in documentation, what are the difference? HOT 2
- PEP 517 support HOT 3
- Policy using Treatment Classes with DynamicDML HOT 1
- Wrong ATE estimation result, expected positive ATE got negative ATE HOT 2
- CausalForestDML need X to successfully run HOT 2
- how can i save model? HOT 2
- Bug with SHAP library v.0.41 HOT 1
- NumbaDeprecationWarning via shap HOT 1
- Changing covariance logic in DRIV HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from econml.