Use the by prefixand the tabstat
command along with the by ( ) option and statistics ( )
option to generate by gender (riagendr) and by (age),
selected summary statistics (mean, 25th percentile, median,
75th percentile) for the total cholesterol variable (lbxtc),
for those who are 20 years and older and have been both
interviewed and examined (ridstatr=2). Use the [aweight=]
option to account for data inversely proportional to the
variance of an observation.
In this example, the MEC weight for four years of data (wtmec4yr) is
used.