@hwangnyc wrote:
Hi Ballardw,
THANK YOU! This is perfect. Can you tell me how I can sum across the rows?
proc tabulate data=dataexercise;
class week Status ;
table
week=' ',
Status=' ' All='Row total'
/box=week;
run;
will do a row count total for all records in the week
proc tabulate data=dataexercise;
class week Status ;
table
week=' ' all='Column Total',
Status=' '
/box=week;
run;
Will do the total across the weeks and;
proc tabulate data=dataexercise;
class week Status ;
table
week=' ' all='Column Total',
Status=' ' all='Row Total'
/box=week;
run;
Will provide a total of both row and column.
All can be used in parentheses to work with different groups of values.
Be aware that Proc Tabulate by default will only include records that have values for all of the Class variables by default.