The syntax for the SPEC statement is as follows:
You can use at most one SPEC statement in the CAPABILITY procedure. When you provide specification limits and target values in a SPEC statement, the tabular output produced by the PROC CAPABILITY statement includes process capability indices as well as summary statistics. You can use the SPEC statement in conjunction with the CDFPLOT, COMPHISTOGRAM, HISTOGRAM, PROBPLOT, and QQPLOT statements to add specification limit and target lines to the plots produced with these statements.
control features of the specification limits and target values. The section Summary of Options, which follows, lists all options by function. The section Dictionary of Options describes each option in more detail.
The following tables list the SPEC statement options by function. For complete descriptions see the section Dictionary of Options.
Option |
Description |
---|---|
Lower Specification Limit Options |
|
color used to fill area left of lower specification limit (histograms only) |
|
color of lower specification limit line |
|
line type of lower specification limit line |
|
lower specification limit values |
|
character used for lower specification limit line in line printer plots |
|
pattern type used to fill area left of lower specification limit (histograms only) |
|
width of lower specification limit line |
|
Target Options |
|
color of target line |
|
line type of target line |
|
target value |
|
character used for target in line printer plots |
|
width of target line |
|
Upper Specification Limit Options |
|
color used to fill area right of upper specification limit (histograms only) |
|
color of upper specification limit line |
|
line type of upper specification limit line |
|
pattern type used to fill area right of upper specification limit (histograms only) |
|
upper specification limit values |
|
character used for upper specification limit in line printer plots |
|
width of upper specification limit line |
The following entries provide detailed descriptions of options for the SPEC statement. The notes Traditional Graphics, ODS Graphics, and Line Printer identify options that can be used with traditional graphics, ODS Graphics output, and line printer plots, respectively.
[Traditional Graphics][ODS Graphics] determines the color used to fill the area under a histogram to the left of the lower specification limit. You can specify the CLEFT option without an argument to fill this area with an appropriate color from the ODS style. If you are producing ODS Graphics output, an explicit color specification is ignored. This option is applicable only when the SPEC statement is used in conjunction with a HISTOGRAM or COMPHISTOGRAM statement. See Output 5.2.1 for an example. The CLEFT= option also applies to the area under a fitted curve;for an example, see Output 5.8.1.
[Traditional Graphics] specifies the color of the lower specification line displayed in plots created with the CDFPLOT, COMPHISTOGRAM, HISTOGRAM, PROBPLOT, and QQPLOT statements.
[Traditional Graphics][ODS Graphics] determines the color used to fill the area under a histogram to the right of the upper specification limit. You can specify the CRIGHT option without an argument to fill this area with an appropriate color from the ODS style. If you are producing ODS Graphics output, an explicit color specification is ignored. This option is applicable only when the SPEC statement is used in conjunction with a HISTOGRAM or COMPHISTOGRAM statement. See Output 5.2.1 for an example. The CRIGHT= option also applies to the area under a fitted curve; for an example, see Output 5.8.1.
[Traditional Graphics] specifies the color of the target line displayed in plots created with the CDFPLOT, COMPHISTOGRAM, HISTOGRAM, PROBPLOT, and QQPLOT statements.
[Traditional Graphics] specifies the color of the upper specification line displayed in plots created with the CDFPLOT, COMPHISTOGRAM, HISTOGRAM, PROBPLOT, and QQPLOT statements.
[Traditional Graphics] specifies the line type for the lower specification line displayed in plots created with the CDFPLOT, COMPHISTOGRAM, HISTOGRAM, PROBPLOT, and QQPLOT statements. See Output 5.2.1 for an example. The default is 1, which produces a solid line.
specifies the lower specification limits for the variables listed in the VAR statement, or for all numeric variables in the input data set if no VAR statement is used. If you specify only one lower limit, it is used for all of the variables; otherwise, the number of limits must match the number of variables. See the section Computing Capability Indices for an example.
[Line Printer] specifies the character used to display the lower specification line in line printer plots created with the CDFPLOT, HISTOGRAM, PROBPLOT, and QQPLOT statements. The default character is 'L'.
[Traditional Graphics] specifies the line type for the target line in plots created with the CDFPLOT, COMPHISTOGRAM, HISTOGRAM, PROBPLOT, and QQPLOT statements. See Output 5.2.1 for an example. The default is 1, which produces a solid line.
[Traditional Graphics] specifies the line type for the upper specification line displayed in plots created with the CDFPLOT, COMPHISTOGRAM, HISTOGRAM, PROBPLOT, and QQPLOT statements. See Output 5.2.1 for an example. The default is 1, which produces a solid line.
[Traditional Graphics] specifies the pattern used to fill the area under a histogram to the left of the lower specification limit. This option is applicable only when the SPEC statement is used in conjunction with a HISTOGRAM or COMPHISTOGRAM statement. For an example, see Output 5.2.1. The PLEFT= option also applies to the area under a fitted curve; for an example, see Output 5.8.1. The default pattern is a solid fill.
[Traditional Graphics] specifies the pattern used to fill the area under a histogram to the right of the upper specification limit. This option is applicable only when the SPEC statement is used in conjunction with a HISTOGRAM or COMPHISTOGRAM statement. For an example, see Output 5.2.1. The PRIGHT= option also applies to the area under a fitted curve; for an example, see Output 5.8.1. The default pattern is a solid fill.
specifies target values for the variables listed in the VAR statement, or for all numeric variables in the input data set if no VAR statement is used. If you specify only one target value, it is used for all of the variables; otherwise, the number of values must match the number of variables. See the section Computing Capability Indices for an example.
[Line Printer] specifies the character used to display the target line in line printer plots created with the CDFPLOT, HISTOGRAM, PROBPLOT, and QQPLOT statements. The default character is 'T'.
specifies the upper specification limits for the variables listed in the VAR statement, or for all numeric variables in the input data set if no VAR statement is used. If you specify only one upper limit, it is used for all of the variables; otherwise, the number of limits must match the number of variables. See the section Computing Capability Indices for an example.
[Line Printer] specifies the character used to display the upper specification line in line printer plots created with the CDFPLOT, HISTOGRAM, PROBPLOT, and QQPLOT statements. The default character is 'U'.
[Traditional Graphics] specifies the width in pixels of the lower specification line in plots created with the CDFPLOT, COMPHISTOGRAM, HISTOGRAM, PROBPLOT, and QQPLOT statements. See Output 5.2.1 for an illustration. The default is 1.
[Traditional Graphics] specifies the width in pixels of the target line in plots created with the CDFPLOT, COMPHISTOGRAM, HISTOGRAM, PROBPLOT, and QQPLOT statements. See Output 5.2.1 for an illustration. The default is 1.
[Traditional Graphics] specifies the width in pixels of the upper specification line in plots created with the CDFPLOT, COMPHISTOGRAM, HISTOGRAM, PROBPLOT, and QQPLOT statements. See Output 5.2.1 for an illustration. The default is 1.