SAS OnlineTutorback||next

Try It! Using the Clinic.Admit data set, experiment with table enhancements.

Creating HTML output? Read this first.

  1. Copy the program below and paste it into the Program Editor window (or issue the command copy sashelp.oltutor..source).
ods listing close;
ods html path='?' body='?';
proc format;
   value $colsex 'F'='lipk'
                 'M'='vpab';
   value agealert low-29='lio'
                  other='vpag';
   value ageflyov low-29='Could be trouble'
                  other=' ';
run;
proc tabulate data=clinic.admit format=4.1;
   var age / style=<parent>;
   class sex actlevel / style={background=vpag};
   classlev sex / style={background=$colsex.};
   classlev actlevel / style=<parent>;
   table sex*actlevel*age*
         {style={background=agealert. flyover=ageflyov.
         font_weight=bold foreground=black}},
         mean / box={style={background=vpag}};
   keyword mean / style={background=vpag};
run;
ods html close;
ods listing;
  1. Replace the question marks (?) with PATH= and BODY= values that conform to your system's file structure. Remember that you can use the URL= suboption in PATH=, BODY=, or both.

  2. Experiment freely with the program, creating new designs by changing STYLE= option attributes and values. Refer to the list of SAS/GRAPH color names if needed.

  3. Submit the program and examine its output in your browser.

    Return here and select Next.

Solution
back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA.
All rights reserved.

Terms of Use & Legal Information | Privacy Statement