01-16-2012 11:21 AM
i want my proc freq only to do counts and not percent.
so what i did was
PROC FREQ DATA=TEMP ORDER=FREQ NOPRINT;
TABLES X * Y / NOPERCENT OUT=TEMP2;
but even though i mention no percent my out put is showing
X Y COUNT PERCENT
abc 123 2 40
I don't want the percent to be calculated.
Am i doing any thing wrong or is there any other option i have to use to suppress it.
01-16-2012 11:37 AM
If you don't want it in the output file, you can always just drop it. e.g.,
PROC FREQ DATA=sashelp.class ORDER=FREQ NOPRINT;
TABLES age * sex / OUT=TEMP2 (drop=percent);
01-16-2012 01:28 PM
The ODS tables don't give the percent but they give a bunch of other columns that are probably just as useless, so dropping is your best option.
proc freq data=sashelp.class;
tables sex*age/ nopercent nocol norow out=temp2;
ods output crosstabfreqs=temp3;