Hi, all. I am working with the updated -table- command in Stata 17, and am looking to produce a fairly standard "table 1", in which frequencies and percentages appear next to each other.

Here's a table shell that illustrates what I'm looking for.


Array


Using one of Stata's built-in databases, I have code that gets me fairly close to this:

Code:
 webuse  nlswork, clear
 table ( var ) ( union ) (), statistic( fvfrequency race collgrad) statistic(percent race  collgrad)  statistic(mean age ) statistic(sd age )
However, I need to find a way to move the percentages so that they are on the same row as the counts for the relevant variable. I also need to eliminate the "Factor variable frequency" text and just show the values for each row. After looking at the documentation and some of the videos on the new -table-, I'm not seeing how to do this. Thanks for any help!