I think the issue here is that -svmat-
loses the rownames.
-svmat2- from STB-56 has an option to
put rownames in a string variable.
Nick
[email protected]
Friedrich Huebler
>
> If you don't need the first -tabstat- column you can save the
> generated values with the help of the -tabstatmat- and -dropmiss-
> packages from SSC.
>
> . ssc install tabstatmat
> . ssc install dropmiss
>
> Example using the auto data:
>
> . sysuse auto, clear
> . tabstat price weight, by(foreign) stats(sum) save
> . tabstatmat matvars
> . svmat matvars
> . keep matvars*
> . dropmiss, obs
> . outsheet using table.txt
>
> The tab-delimited file table.txt can be opened in Excel.
>
> Question to other list members: How can the first -tabstat- column be
> saved together with the other columns?
*
* 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/