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

Re: Customizable tables in Stata 17, part 3: The classic table 1

$
0
0

If you only want to include certain levels, you can specify them with -table- and -collect layout-. For example, when creating the basic table above, you could include just the individuals with high blood pressure by changing the -table- command as follows: table (var) (highbp) if highbp==1, statistic(fvfrequency sex) statistic(fvpercent sex) statistic(mean age) statistic(sd age) nototal. Or, you could change the -collect layout- command as follows: collect layout (var) (highbp[1]#result[column1 column2]).


Viewing all articles
Browse latest Browse all 1126

Trending Articles