![]() Chapter Contents |
![]() Previous |
![]() Next |
XSCHART Statement |
See SHWXS3 in the SAS/QC Sample Library |
You can use output data sets from a number of SAS procedures as input data sets for the SHEWHART procedure. In this example, the MEANS procedure is used to create a data set containing subgroup summary statistics, which can be read by the SHEWHART procedure as a HISTORY= data set. The following statements create an output data set named OILSUMM, which contains subgroup means, standard deviations, and sample sizes for the variable KWATTS in the data set TURBINE (see "Creating Charts for Means and Standard Deviations from Raw Data" ):
proc means data=turbine noprint; var kwatts; by day; output out=oilsumm mean=means std=stds n=sizes; run;
A listing of OILSUMM is shown in Output 44.2.1.
Output 44.2.1: The Data Set OILSUMMtitle 'Mean and Standard Deviation Charts for Power Output'; symbol v=dot; proc shewhart history=oilsumm (rename=(means = kwattsx stds = kwattss sizes = kwattsn )); xschart kwatts*day; run;
The resulting charts are identical to the charts in Figure 44.2.
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.