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]).
↧