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, 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 <>
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

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

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?


*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index