Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: Outreg/estout after mfx or margin?


From   Friedrich Huebler <[email protected]>
To   [email protected]
Subject   st: Re: Outreg/estout after mfx or margin?
Date   Tue, 19 Apr 2005 11:42:13 -0700 (PDT)

Chris,

You can save marginal effects with -outreg- by placing the results of
-mfx- in the coefficient vector ("margeff" in the example below) and
the covariance matrix ("variance" below). This is done with -ereturn
post-.

. sysuse auto
. probit foreign mpg weight
. local obs = e(N)
. mfx
. mat margeff = e(Xmfx_dydx)
. mat standerr = diag(e(Xmfx_se_dydx))
. mat variance = standerr*standerr
. ereturn post margeff variance, obs(`obs')
. outreg using results.txt, ctitle(Car type)

Friedrich Huebler

--- Chris Meissner <[email protected]> wrote:
> I am running some simple probit models and I have found it useful
> to use 
> the margin command after estimation to get the marginal effects I
> want.
> 
> The only problem is that my old standby "outreg" doesn't seem to be
> set up 
> to drop the reported results into a nice formatted text file ready
> to be made into a table.
> 
> As far as I can tell I don't think estout is usable after margin or
> mfx either.
> 
> I would be very grateful to know if there is an option in either
> outreg or 
> estout to report the results from margin and for that matter mfx.
> 
> Alternatively is there another command available to do such a
> thing?
> 
> Thanks in advance!
> 
> Chris Meissner
> Faculty of Economics
> University of Cambridge


		
__________________________________ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index