ANOM BOXCHARTS With Unequal Group Sizes

/****************************************************************/
/*          S A S   S A M P L E   L I B R A R Y                 */
/*                                                              */
/*    NAME: ANMBXEX1                                            */
/*   TITLE: ANOM BOXCHARTS With Unequal Group Sizes             */
/* PRODUCT: QC                                                  */
/*  SYSTEM: ALL                                                 */
/*    KEYS: ANOM Charts, Mean Charts, Boxcharts, Unequal Groups */
/*   PROCS: ANOM                                                */
/*    DATA:                                                     */
/*                                                              */
/* SUPPORT: saswgr                                              */
/*     REF: PROC ANOM, BOXCHART Statement Example 1             */
/*                                                              */
/****************************************************************/

data LabelDev2;
   input Position @;
   do i = 1 to 5;
      input Deviation @;
      output;
   end;
   drop i;
   datalines;
1  -0.0239  -0.0285  -0.0300  -0.0043  -0.0362
1  -0.0422  -0.0014  -0.0647   0.0094  -0.0016
2  -0.0201  -0.0273   0.0227  -0.0332   0.0366
2   0.0438   0.0556   0.0098   0.0564   0.0182
3  -0.0073   0.0285    .        .      -0.0139
3    .       0.0357   0.0235    .      -0.0020
4   0.0669   0.1073    .        .       0.0755
4    .       0.0561   0.0899    .       0.0530
5   0.0368   0.0036   0.0374   0.0116  -0.0074
5   0.0250  -0.0080   0.0302  -0.0015  -0.0464
6   0.0049  -0.0384  -0.0204  -0.0049  -0.0120
6   0.0071  -0.0308   0.0017  -0.0285  -0.0070
;


ods graphics on;
title 'Analysis of Label Deviations';
proc anom data=LabelDev2;
   boxchart Deviation*Position / odstitle=title;
   label Deviation = 'Mean Deviation from Center (mm)';
   label Position  = 'Labeler Position';
run;