Giter Club home page Giter Club logo

Comments (4)

kbattocchi avatar kbattocchi commented on July 2, 2024

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.

xiaogangzhu avatar xiaogangzhu commented on July 2, 2024

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.

kbattocchi avatar kbattocchi commented on July 2, 2024

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.

xiaogangzhu avatar xiaogangzhu commented on July 2, 2024

Thanks!

from econml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.