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]
Re: st: export LaTeX table with margins after mlogit
From
Andreas Chouliaras <[email protected]>
To
[email protected]
Subject
Re: st: export LaTeX table with margins after mlogit
Date
Tue, 18 Jun 2013 19:16:19 +0200
Sorry I forgot to mention that from what I found I would normally
write (to export the .tex table)
<fit model>
estadd margins, dydx(*)
estout, cells("b margins_b" "se(par) margins_se(par)")
est store A
esttabA using table1.tex replace f star(* 0.10 **0.05 ***0.001)
cells("b(fmt(3)star) margins_b(star)" "se fmt(3)par)")
stats(N r2_p chi2 p pr, fmt(0 3)
...
Thanks in advance!
On Tue, Jun 18, 2013 at 7:10 PM, Andreas Chouliaras <[email protected]> wrote:
> Dear All,
>
> I estimate an mlogit model
>
> mlogit Y X1 X2 X3 X4 X5
>
> Then using a loop I get the marginal effects
>
> est store m
> forval i = 0/5 {
> est res m
> margins, dydx(*) predict(outcome(`i')) post
> est store m`i'
> }
> estout m0 m1 m2 m3 m4 m5
>
> And I want to add these results everytime along with the coefficients
> of the mlogit using the estadd command and then
> store them and export them in tex using esttab.
>
> Can anyone help me do that?
>
> Thanks a lot,
> Andreas
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/statalist-faq/
> * http://www.ats.ucla.edu/stat/stata/
--
Andreas
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/