Creating ANOM Charts for Means from Group Summary Data

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

data Labels;
   input Position DeviationX DeviationS;
   DeviationN = 10;
   datalines;
1  -0.02234  0.02281
2   0.01624  0.03348
3   0.00601  0.02885
4   0.06473  0.02149
5   0.00812  0.02592
6  -0.01281  0.01597
;

title 'The Data Set Labels';
proc print data=Labels noobs;
run;

ods graphics on;
title 'Analysis of Label Deviations';
proc anom summary=Labels;
   xchart Deviation*Position / odstitle=title1;
run;