-
Notifications
You must be signed in to change notification settings - Fork 720
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 to use LinearDML and causalforestDML to get CATE #926
Comments
In general, the CATE is the Conditional Average Treatment Effect, of going from some treatment T0 to some other treatment T1, given some set of features X. For all of our estimators, this can be gotten by calling Most of our estimators are linear in the treatment, and often there is a single treatment, in which case the marginal effect is just a scalar function of X independent of T, and so |
CORRECTION: |
Or shortly, @kbattocchi How can I understand the results of treeinterpreter. And I even can use treeinterpreter for LinearDML, I know GRF create the split structure by maximizing the heterogeneity for each spilt. But how do LinearDML create the split structure? Big thanks in advance. |
If you have multiple columns in X, the CATE is giving you an estimate of the effect of T on Y conditional on all of the features in X simultaneously. In general, for CausalForestDML, this will be some complicated function of X, while for LinearDML this will just be a linear function of X (which coef_ gives you the coefficients for). SingleTreeCateInterpreter is one way to try to get a simplified view of any learned CATE model - it will give you a tree that has just a handful of nodes, making it easy to interpret, but the tradeoff is that it will give you rougher estimates of the CATE because it averages together units that the underlying model would assign different individual CATEs. However, this tradeoff might be worthwhile if you need a very high level understanding of which units have very different effects from each other, rather than more precise estimates for each unit. |
Hi, I'm new to this.
I want to know if the coef_ I have got in LinnearDML is CATE? If not, what these coef_ mean?
where can I get CATE when I use causalforestDML?
I'm so confused...I have read doc for many times but I still can't get CATE values.
In my opinion, I think CATE is the effect when X_i=1 and other features all equal to 1 or 0....is anything wrong about my definition about CATE?
Thank you~
(or if I use marginal_effect['CATE']=est.marginal_effect(T, X), and then marginal_effect.groupby(X_i)['CATE'].mean(), can I get CATE through this way?)
The text was updated successfully, but these errors were encountered: