Creating ANOM p Charts from Group Summary Data

/****************************************************************/
/*          S A S   S A M P L E   L I B R A R Y                 */
/*                                                              */
/*    NAME: ANMPGRP                                             */
/*   TITLE: Creating ANOM p Charts from Group Summary Data      */
/* PRODUCT: QC                                                  */
/*  SYSTEM: ALL                                                 */
/*    KEYS: ANOM Charts, Proportions Charts, Group Summary Data */
/*   PROCS: ANOM                                                */
/*    DATA:                                                     */
/*                                                              */
/* SUPPORT: saswgr                                              */
/*     REF: PROC ANOM, PCHART Statement Getting Started 2       */
/*                                                              */
/****************************************************************/

data CsectProp;
   length ID $ 2;
   input ID CsectionsP CsectionsN @@;
   datalines;
1A  0.163  923   1K  0.151  298   1B  0.200  170   1D  0.136  132
3I  0.189  106   3M  0.114  105   1E  0.130   77   1N  0.257   74
1Q  0.101   69   3H  0.169   65   1R  0.224   49   1H  0.188   48
3J  0.350   20   1C  0.186   43   3B  0.140   43   1M  0.138   29
3C  0.179   28   1O  0.148   27   1J  0.273   22   1T  0.136   22
3E  0.222   18   1G  0.267   15   3D  0.308   13   3G  0.091   11
1L  0.200   10   1I  0.125    8   1P  0.000    3   1F  0.000    3
1S  0.333    3
;

title 'Proportions of Cesarean Sections';
proc print data=CsectProp (obs = 10) noobs;
run;

ods graphics on;
title 'ANOM for the Proportion of Cesarean Sections';
proc anom summary=CsectProp;
   pchart Csections*ID / odstitle = title1;
run;