Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Re: Question: Saving table result


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Re: Question: Saving table result
Date   Wed, 18 Feb 2004 13:16:09 -0000

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index