Understanding the Order of Headings with ORDER=DATA
The ORDER= option applies to all class variables. Occasionally, you want to order the
headings for different variables differently. One method for reordering the headings is to
group the data as you want them to appear and to specify ORDER=DATA.
For this technique to work, the first value of the first class variable must occur in the
data with all possible values of all the other class variables. If this criterion is not met,
then the order of the headings might surprise you.
The following program creates a simple data set in which the observations are ordered
first by the values of Animal, then by the values of Food. The ORDER= option in the
PROC TABULATE statement orders the heading for the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.