You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ENH: predictive margins versus teffects regression adjustment #3744
Stata's documentation on margins has examples that compares ATE or ATT computed through the margin command with the ones computed using teffects.
That makes some nice comparison test cases for expanding margins. The direct RA regression uses an interaction effect between the binary treatment variable and all other regressors to compute separate regression coefficients for the two levels of the treatment effect.
Currently, our discrete margins do not support a multi-column effect. One difficulty is that it is not easy to get necessary information for multi-column effects. One possibility would be to use patsy through predict to construct the correct predictive design matrix. However, we still have problems recovering all multi-column effects and recreate a desired original dataframe.
(There was a related stackoverflow question for how to find out from the model and design_info to which variables/columns where used from the dataframe. There is no simple obvious way to recover that info.)
(There should be related issues to the implementation part.)
bump for 0.10
we need an example to illustrate ATE for a binary explanatory variable using DiscreteMargins.
This should be already supported AFAIU.
Also, Margins in GLM would allow this for a simple Gaussian example which should be the same as doing it manually with OLS.
Also, I think it should be possible to compute this with a generic predict_nl.
So, we get several overlapping methods that could be used to cross-check and unit test.
We still have an open issue about how to define prob_weights in GLM.
My guess is that we can use the overlap in GLM with prob-weiths and treatment effects (GMM based IPW methods) to cross-check, compare and cross unit test.
The implied effects should be the same but using fixed prob_weights will not take into account that prob-weights are estimated.
Activity
josef-pkt commentedon Apr 21, 2018
bump for 0.10
we need an example to illustrate ATE for a binary explanatory variable using DiscreteMargins.
This should be already supported AFAIU.
Also, Margins in GLM would allow this for a simple Gaussian example which should be the same as doing it manually with OLS.
Also, I think it should be possible to compute this with a generic predict_nl.
So, we get several overlapping methods that could be used to cross-check and unit test.
josef-pkt commentedon Apr 21, 2018
And
We still have an open issue about how to define prob_weights in GLM.
My guess is that we can use the overlap in GLM with prob-weiths and treatment effects (GMM based IPW methods) to cross-check, compare and cross unit test.
The implied effects should be the same but using fixed prob_weights will not take into account that prob-weights are estimated.