Skip to content

ENH: predictive margins versus teffects regression adjustment #3744

Open

Description

@josef-pkt

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.)

Activity

  1. added this to the 0.10 milestone on Apr 21, 2018
  2. josef-pkt commented on Apr 21, 2018

    @josef-pkt
    MemberAuthor

    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.

  3. josef-pkt commented on Apr 21, 2018

    @josef-pkt
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions