The PROC MACONTROL statement starts the MACONTROL procedure and it identifies input data sets.
After the PROC MACONTROL statement, you provide either an EWMACHART or an MACHART statement that specifies the type of moving average chart you want to create and the variables in the input data set that you want to analyze. For example, the following statements request a uniformly weighted moving average chart:
proc macontrol data=values; machart weight*lot / mu0 = 8.10 sigma0 = 0.05 span = 5; run;
In this example, the DATA= option specifies an input data set named values
that contains the process measurement variable weight
and the subgroup-variable lot
. [41]
You can use options in the PROC MACONTROL statement to do the following:
specify input data sets containing variables to be analyzed, parameters for calculating moving averages, or annotation information
specify a graphics catalog for saving traditional graphics
specify that charts be produced as traditional graphics or line printer charts
define characters used for features on line printer charts
In addition to the chart statement, you can provide BY statements, ID statements, TITLE statements, and FOOTNOTE statements. If you are producing traditional graphics, you can also provide graphics enhancement statements, such as SYMBOLn statements, which are described in SAS/GRAPH: Reference.
See Chapter 3: SAS/QC Graphics, for a detailed discussion of the alternatives available for producing charts with SAS/QC procedures.
Note: If you are using the MACONTROL procedure for the first time, you should also read the sections Getting Started: EWMACHART Statement and Getting Started: MACHART Statement.
[41] In SAS 6.12 and previous releases of SAS/QC software, the keyword GRAPHICS was required in the PROC MACONTROL statement to specify that the chart be created as traditional graphics. In SAS 7 and later releases, you can specify the LINEPRINTER option to request line printer charts.