PROC FREQ is a core procedure. It ought to be possible to display MISSING values at the bottom of the output rather than at the top (without creating a NOTSORTED format for every single variable!).
I frequently want to see -- and report -- cumulative frequencies of the non-missing values before seeing the impact of the MISSING values on the distribution of my nominal variables. It is a big pain-in-the-bottom to not be able to put MISSING values at the bottom.
I am suggesting a BOTTOMMISS option -- or perhaps a NOPAININTHE option -- for the FREQ (and TABULATE) procedures.
Example:
PROC FREQ DATA=DATA1 ; TABLE V / MISSING NOPAININTHE ; RUN ;
v1 |
Freq |
% |
CumFreq |
Cum% |
CAT1 |
274,948 |
19.31% |
274,948 |
19.31% |
CAT2 |
6,663 |
0.47% |
281,611 |
19.78% |
CAT3 |
196,687 |
13.82% |
478,298 |
33.60% |
CAT4 |
560,603 |
39.38% |
1,038,901 |
72.97% |
CAT5 |
299,029 |
21.00% |
1,337,930 |
93.98% |
Missing |
85,753 |
6.02% |
1,423,683 |
100.00% |