Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: span in estout


From   Richard Palmer-Jones <rpjstatalist@googlemail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: span in estout
Date   Sun, 30 Oct 2011 20:49:42 +0000

Dear Readers

You can see where I'm coming from I am sure.

I have a further question about estout:

Can you span columns if you are not using tex? I can span using .tex
following the model at
http://repec.org/bocode/e/estout/advanced.html#advanced006

preserve
sysuse auto
eststo: quietly reg weight mpg
eststo: quietly reg weight mpg foreign
eststo: quietly reg price weight mpg
eststo: quietly reg price weight mpg foreign
esttab using example.tex, booktabs label            ///
    mgroups(A B, pattern(1 0 1 0)                   ///
        prefix(\multicolumn{@span}{c}{) suffix(})   ///
        span erepeat(\cmidrule(lr){@span}))         ///
    alignment(D{.}{.}{-1}) page(dcolumn) nonumber
eststo clear
retore


and then compiling the .tex producing a fine table (.pdf in my case).

But how do I do this into a .txt or .tab file to load into MS Word or some such?

Thanks

Ricahrd
*
*   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   |   Site index