Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: using estadd margins after logistic


From   "Mary E. Mackesy-Amiti" <[email protected]>
To   [email protected]
Subject   st: using estadd margins after logistic
Date   Wed, 01 Jun 2011 15:00:05 -0500

Dear all,

I have encountered a problem in using -estout- following -estadd margins- after -logistic-. I am using Stata 11.

I used the following commands:

eststo: logistic t1mjevr t1age i.gender
estadd margins i.gender

-eststo: logistic- stores coefficients for 1b.gender & 2.gender

estout , cells(b )

-------------------------
                     est1
                        b
-------------------------
t1mjevr
t1age            .1544523
1b.gender               0
2.gender         .1528109
_cons           -1.883217
-------------------------

while -estadd margins- stores coefficients for 1.gender & 2.gender

. estout , cells(margins_b )

-------------------------
                     est1
                margins_b
-------------------------
1.gender         .6309899
2.gender         .6656009
-------------------------

When I try to put them together in one table, the margin for 1.gender does not appear.

. estout, cells("margins_b b") drop(_cons t1age)

--------------------------------------
                     est1
                margins_b            b
--------------------------------------
t1mjevr
1b.gender                            0
2.gender         .6656009     .1528109
--------------------------------------




I was able to table margins and regression coefficients together after -eststo: regress- with no problem.


Thanks,

Mary Ellen





*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index