User-defined formats are particularly useful for grouping values into fewer categories.
For example, if you have a class variable, Age, with values that range from 1 to 99, then
you could create a user-defined format that groups the ages so that your tables contain a
manageable number of categories. The following PROC FORMAT step creates a format
that condenses all possible values of age into six groups of values.
proc format;
value agefmt 0-29='Under 30'
30-39='30-39'
40-49='40-49'
50-59='50-59'
60-69='60-69'
other='70 or over';
run;
For information about creating user-defined formats, see Chapter 26, “FORMAT
Procedure,” on page 800.
By default, ...
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.