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]
st: span in estout
From
Richard Palmer-Jones <[email protected]>
To
[email protected]
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/