02-20-2015 10:32 AM
I have the following code:
proc print label noobs data=surv1;
var responsec count1 pct1;
sum count1 pct1;
The output looks like this:
Response N Pct
|3-Neither agree nor disagree||30||44%|
Is there a way to add the word "Total" in the last line under "Response"?
02-20-2015 12:44 PM
Look in the PROC PRINT documentation. There is a SUMLABEL= option and a GRANDTOTAL_LABEL= option that can be used. It depends on whether you have BY group processing in the PROC PRINT step or not. Typically, SUMLABEL would be for subgroups and GRANDTOTAL_LABEL would be for the bottom of the report. And if you're not using BY group processing, then you might want to switch to PROC REPORT in order to put some text on the final summary line on the report.