Features: |
WAYS statement |
Other features: |
FORMAT procedure FORMAT statement |
Data set: | CAKE |
options nodate pageno=1 linesize=80 pagesize=64;
proc format; value layerfmt 1='single layer' 2-3='multi-layer' .='unknown'; value $flvrfmt (notsorted) 'Vanilla'='Vanilla' 'Orange','Lemon'='Citrus' 'Spice'='Spice' 'Rum','Mint','Almond'='Other Flavor'; run;
proc means data=cake fw=7 completetypes missing nonobs;
class flavor layers/preloadfmt exclusive order=data;
ways 1 2;
var TasteScore;
format layers layerfmt. flavor $flvrfmt.;
title 'Taste Score For Number of Layers and Cake Flavors'; run;
proc format; value layerfmt 1='single layer' 2-3='multi-layer' .='unknown'; value $flvrfmt (notsorted) 'Vanilla'='Vanilla' 'Orange','Lemon'='Citrus' 'Spice'='Spice' 'Rum','Mint','Almond'='Other Flavor'; run;