Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exporting margins at representative values by group

    I would like to export results from the margins command in separate columns, specifically, by a binary variable. The margins output command (executed after a "logit" command) is:

    margins [bivar], at([continuous var] = (0(10)100)) post

    Using outreg2, I can export the columns as:

    Margin
    _at#bivar
    1#bivar no .1800177
    1#bivar yes .090439
    2#bivar no .1826294
    2#bivar yes .0919386
    3#bivar no .1852689

    Is it possible to export by bivar columns? such as:
    bivar no bivar yes
    1#bivar no .1800177 1#bivar yes .090439
    2#bivar no .1826294 2#bivar yes .0919386


    Thanks in advance for your help




  • #2
    I think that one of the undocumented options for -margins- will do what you want; see
    Code:
    help undocumented
    or, at least, will give you the results as a Stata data set and you can then manipulate as you want

    Comment

    Working...
    X