Hi all, sorry for the second question today but I was wondering if anyone has managed to figure out a way to transpose or essentially flip the axes of results from tabstat? See here:
The resulting table looks like this:
foreign | price mpg turn
---------+------------------------------
Domestic | 6072.423 19.82692 41.44231
Foreign | 6384.682 24.77273 35.40909
---------+------------------------------
Total | 6165.257 21.2973 39.64865
----------------------------------------
Is it possible to make it so that "Domestic" and "Foreign" are the two columns, and price, mpg, turn values are rows?
Code:
sysuse auto2.dta tabstat price mpg turn, by(foreign)
foreign | price mpg turn
---------+------------------------------
Domestic | 6072.423 19.82692 41.44231
Foreign | 6384.682 24.77273 35.40909
---------+------------------------------
Total | 6165.257 21.2973 39.64865
----------------------------------------
Is it possible to make it so that "Domestic" and "Foreign" are the two columns, and price, mpg, turn values are rows?

Comment