With r categories in x, c categories in y,
what you ask for is an array (r + 1) by
(c + 1) by 2. It won't fit into a matrix
without some prior restructuring.
You could try -collapse- followed by
-outsheet- for most of what you want.
Nick
n.j.cox@durham.ac.uk
Tristan Zajonc
> Is there a way to get the results from a table command into a matrix
> or CSV file? In the end I want in Excel.
>
> The command I'm running is:
> table x y, c(sum z mean z) row col
>
> I know there are things like this for reg, tabstat, sum etc but can't
> find anything for "table" and can't easily replicate the format using
> other commands.
*
* 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/