Statalist


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

st: AW: report both coefficient and marginal effects in probit and tobit model


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: report both coefficient and marginal effects in probit and tobit model
Date   Mon, 6 Jul 2009 14:07:34 +0200

<> 

The equivalent call to -estout- is a little more complicated...


*************
estout raw marg ,  ///
 cells(b(fmt(a3) star) t(fmt(2) par("{ralign @modelwidth:{txt:(}"
"{txt:)}}")))             ///
 drop(_cons, relax)
///
 margin
///
 stats(N, fmt(%18.0g) labels(`"N"'))
///
 starlevels(* 0.05 ** 0.01 *** 0.001)
///
 varwidth(12)
///
 modelwidth(12)
///
 abbrev
///
 delimiter(" ")
///
 smcltags
///
 prehead(`"{hline @width}"')
///
 posthead("{hline @width}")
///
 prefoot("{hline @width}")
///
 postfoot(`"{hline @width}"' `"Marginal effects; t statistics in
parentheses"' `"@discrete"' ///
  `"@starlegend"')
///
 varlabels(, end("" "") nolast)
///
 mlabels(, depvar)
///
 numbers
///
 collabels(none)
///
 eqlabels(, begin("{hline @width}" "") nofirst)
///
 level(95)
///
 style(esttab)
///
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von 21443017
Gesendet: Montag, 6. Juli 2009 13:58
An: statalist@hsphsun2.harvard.edu
Betreff: st: report both coefficient and marginal effects in probit and
tobit model

Dear All,

I am running a probit and tobit model in stata and I want to estimate the
marginal effects by using mfx. I want to report the coefficient of the
independent variables and marginal effects as well. However, by using the
code of "estimates store" and "estout", the stata always reports the
coefficient of the independent variables, but not report the marginal
effects. I was just wondering whether there is any way to allow the stata to
report the coefficient and marginal effects in a same table.

The code I use is as below:

Probit y x1 x2, rob
mfx compute
estimates store m9, title(model 9)
estout m9000 , cells(b(fmt(%9.3f)) t(star par fmt(%9.2f))) starlevels(* 0.1
** 0.05 *** 0.01) stats(r2 N, fmt(%9.3f %9.0g) labels(R-squared)) legend
label collabels(, none)varlabels(_cons Constant) posthead("")prefoot("")
postfoot("")varwidth(16) modelwidth(12) delimiter("")


Many Thanks

Best Wishes
Wen




*
*   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/


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index