The third step is to create a trend chart with the SHEWHART procedure, as follows:
title 'Trend Chart for Diameter'; proc shewhart history=regdata; xchart Diameter*hour / trendvar = fitted split = '/' odstitle = title stddevs nolegend; label Diameterx = 'Residual Mean/Fitted Mean'; label hour = 'Hour'; run;
The chart is shown in Figure 18.168. The values of fitted
are plotted in the lower half of the trend chart. The upper half of the trend chart is an chart for the residual means (DiameterX
– fitted
). The chart in Figure 18.168 shows that, after accounting for the trend, the mean level of the process is in control.
Figure 18.168: Trend Chart for Diameter Data
If the data are correlated in time, you can use the ARIMA or AUTOREG procedures in place of the REG procedure to remove autocorrelation structure and display a control chart for the residuals; for an example, see Autocorrelation in Process Data. Another application of the TRENDVAR= option is the display of nominal values in control charts for short runs; see Short Run Process Control.