Appendix: Code for Select Examples

Code for the First Example in Chapter 1

Code for the Classification Panel Example in Chapter 5

Code for the Survival Plot Example in Chapter 5

Code for the Axis Customization Example in Chapter 7

Code for the First Example in Chapter 1

The following code produces the output shown in Figure 1.1:

/*--WORK.CARMEANS--*/

proc means data=sashelp.cars noprint;

  class type;

  var mpg_city mpg_highway;

  output out=carmeans

         mean=mean_city mean_highway

               lclm=lcl_city lcl_highway

               uclm=ucl_city ucl_highway;

  run;

data carmeans;

  set carmeans(where=(_type_=1));

  drop _type_;

  format mean_city mean_highway lcl_city lcl_highway ucl_city

           ucl_highway 3.0;

  label mean_city='City'; ...

Get SAS ODS Graphics Designer by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.