Can you use a format that was created with Proc Format in PROC BOXPLOT in oder to compare several groups associated with the format "bins" into which you have divided the grouping variable.
PROC FORMAT ;
VALUE LEVELS
0 <- 2 = 'A'
2 <- 6 = 'B'
6 <- 10 = 'C'
10 <- 12 = 'D'
12 <- 16 = 'E';
RUN;
PROC FREQ
DATA = QUIZDATA ;
TABLES NLEVELS / PLOTS = FREQPLOT ;
FORMAT NLEVELS LEVELS. ;
RUN;
The format works well with PROC FREQ.
How would you use it with PROC BOXPLOT as I just wish to compare the five groups A -E and not all the individual values.
If one actually creates a new variable by binning the variable NLEVELS using the same groups as in PROC FORMAT
then you can use this new variable in PROC BOXPLOT for comparison.