Hi Statalist,

I am using Stata 15 and I have a question related to tabout 3.

I want to make a table (as a docx) with multiple continuous variables (age, duration of infection, etc) by a certain categorical variable (with three levels).

I want the categorical variable to be presented as columns and all of the continuous variables as rows.

However, the current version of tabout only seems to allow having the categorical variable in the column, and therefore all my continious variables are shown in the rows. This is not very handy for reporting in the manuscript.

Does anyone knows a way (if in tabout) or a trick to make this changes?


For example, now I get this:

age yearIDU
infection
HIV 31 6.0
HCV 29 1.8
HBV 30 5.0

But i want:
HIV HCV HBV
age
yearIDU

Any help is highly appreciated!!!

Thanks, Daniela.