10-28-2014 07:00 PM
|I useddonor_relation||Frequency Count|
I created this file using the following code
proc freq data=b ;
table donor_relation/nocum nopercent out=how2;
the question is how can I get the total sum of all frequencies at the bottom.Is there any other methodwhich I can use?
10-28-2014 08:00 PM
Proc tabulate can provide total of all frequencies at the bottom in addition to frequency of each level. Try this.
proc tabulate data=b;
table donor_relation all='Total',n='Frequency Count';
10-29-2014 03:27 AM
I think that if you export the dataset adding the option out=nameoftheoutput it will create a table that have totals, something likev
VAR1 VAR2 Freq
lev1 lev1 ....
... ... ...
where rows without levels is the total, rows with only a level in one of the variables is the sum of the row or column