Note: See Mean and Standard Deviation Charts Examples in the SAS/QC Sample Library.
In this example, the XSCHART statement is used to create a summary data set that can be read later by the SHEWHART procedure
(as in the preceding example). The following statements read measurements from the data set Turbine
(see Creating Charts for Means and Standard Deviations from Raw Data) and create a summary data set named Turbhist
:
proc shewhart data=Turbine; xschart KWatts*Day / outhistory = Turbhist nochart; run;
The OUTHISTORY= option names the output data set, and the NOCHART option suppresses the display of the charts, which would be identical to those in FigureĀ 18.115. Options such as OUTHISTORY= and NOCHART are specified after the slash (/) in the XSCHART statement. A complete list of options is presented in the section Syntax: XSCHART Statement.
FigureĀ 18.118 contains a partial listing of Turbhist
.
Figure 18.118: The Summary Data Set Turbhist
There are four variables in the data set Turbhist
.
Day
contains the subgroup index.
KWattsX
contains the subgroup means.
KWattsS
contains the subgroup standard deviations.
KWattsN
contains the subgroup sample sizes.
Note that the summary statistic variables are named by adding the suffix characters X, S, and N to the process KWatts
specified in the XSCHART statement. In other words, the variable naming convention for OUTHISTORY= data sets is the same
as that for HISTORY= data sets.
For more information, see OUTHISTORY= Data Set.