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

st: Re: mfx and outreg


From   "Michael Blasnik" <michael.blasnik@verizon.net>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: mfx and outreg
Date   Mon, 29 Mar 2004 12:39:29 -0500

Well, you could just trick outreg into thinking you had regression results.
If you run your model and then run the mfx command, you could post those
results so that outreg would see them.  For example

xtpois ....
mfx ....
mat myb=e(Xmfx_dydx)
mat myV=diag(e(Xmfx_se_dydx))
mat myV=myV*myV
local obs=e(N)
ereturn post myb myV, obs(`obs')
outreg using mymfx...

This approach won't give you a column title, but you may be able to figure
out how to do that using outreg's options.  You could even create a wrapper
ado for this.  Of course, it may be better to write your own output routine,
but if you are familiar with outreg and like it's approach, then something
like the code above may meet your needs.

Michael Blasnik
michael.blasnik@verizon.net



----- Original Message ----- 
From: "Ed Levitas" <levitas@uwm.edu>
To: <statalist@hsphsun2.harvard.edu>
Sent: Monday, March 29, 2004 11:49 AM
Subject: st: mfx and outreg


> Hello Statalisters,
>
> We've used STATA's MFX command to calculate coefficient elasticities after
> XTPOIS.  Is it possible now to format the elasticities and associated std
> errors into a table using OUTREG?  I've tried but do not seem to have any
> luck.  If this is not possible using OUTREG, can anyone suggest another
> procedure?
>
> Thanks in advance.
>
> Ed
>
>
>
> ****************************************
> Edward Levitas, PhD


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