Hi, i have been trying to export a tabstat result to excel on an specific sheet. I tried using putexcel command and sttab but none of them works fine. For example putexcel only export the total value. Here is an example of my database
So using a tabstat by category 1:
I got this tabstat
However when i export the result using putexcel it only export the Total values:
Category 1 | Category 2 | Var 1 | Var 2 |
1 | 1 | 5 | 7 |
1 | 2 | 7 | 10 |
2 | 2 | 2 | 9 |
3 | 1 | 3 | 4 |
. tabstat var1 var2, stats(sum) by(category1) save
category1 var1 var2
1 12 17
2 2 9
3 3 4
Total 17 30
1 12 17
2 2 9
3 3 4
Total 17 30
var1 | var2 | |
Sum | 17 | 30 |
Comment