Announcement

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

  • Returning Odds Ratios as variables

    Hi guys,

    I would like to use the Odds Ratios, CIs, and p-Values, from my logistic regression and make a table like the ones from .estout. How can I access these values that are not in the ereturn list?

    Thanks a lot already.
    Best,
    Kai

  • #2
    all this is return in r(table); so, e.g.,

    Code:
    sysuse auto
    logistic foreign mpg price weight
    mat li r(table)
    you will probably find this easiest to use if you put this matrix into one of your own (e.g,, mat def junk=r(table)) and then you can use standard operators to put what you want into macros/scalars (not into variables) and then use them how you will

    Comment


    • #3
      Maarten Buis's paper, "Stata tip 53: Where did my p–values go?", can probably get you started.

      http://www.stata-journal.com/article...article=st0137

      You would also need to exponentiate the coefficients to get the odds ratios.
      -------------------------------------------
      Richard Williams, Notre Dame Dept of Sociology
      StataNow Version: 19.5 MP (2 processor)

      EMAIL: [email protected]
      WWW: https://www3.nd.edu/~rwilliam

      Comment

      Working...
      X