Quantcast
Channel: The Stata Blog - Latest Comments
Viewing all articles
Browse latest Browse all 1126

Re: Export tables to Excel

$
0
0

Yes you can. You will have to do a little programming to recreate the entire table, but you can get the numbers generated in tabstat with the save option.

. tabstat mpg for, save
stats | mpg foreign
---------+--------------------
mean | 21.2973 .2972973
------------------------------

. return list
matrices:
r(StatTotal) : 1 x 2

. matrix list r(StatTotal)
r(StatTotal)[1,2]
mpg foreign
mean 21.297297 .2972973


Viewing all articles
Browse latest Browse all 1126

Trending Articles