-
Copy the program below and paste it into the Program Editor window (or issue the command
copy sashelp.oltutor..source ).
proc tabulate data=clinic.admit format=9.;
class actlevel;
var age;
table actlevel all,age*mean;
where sex='F';
label actlevel='Activity Level';
keylabel all='All Levels'
mean='Average';
title1 'Statistics for Females';
footnote;
run;
-
Add a page-expression to the TABLE statement to create a table with separate
pages for values of
Sex . Delete the WHERE statement and cancel
all titles.
- Specify
Sex in the CLASS or VAR statement as appropriate.
-
Submit the step and view the output.
Return here and select Next.
|