See CAPPROC in the SAS/QC Sample LibraryThis example is a continuation of the previous example and shows how you can provide specification limits with a SPEC statement to request capability indices in addition to descriptive statistics.

proc capability data=Cans normaltest freq; spec lsl=11.95 target=12 usl=12.05; var Weight; run;

The options LSL=, TARGET=, and USL= specify the lower specification limit, target value, and upper specification limit for the weights. These statements produce the output shown in Figure 5.2 in addition to the output shown in Figure 5.1.

Figure 5.2: Capability Indices and Frequency Table

Process Capability Analysis of Fluid Weight |

The CAPABILITY Procedure

Variable: Weight (Fluid Weight (ounces))

Specification Limits | |||
---|---|---|---|

Limit | Percent | ||

Lower (LSL) | 11.95000 | % < LSL | 7.00000 |

Target | 12.00000 | % Between | 77.00000 |

Upper (USL) | 12.05000 | % > USL | 16.00000 |

Process Capability Indices | |||
---|---|---|---|

Index | Value | 95% Confidence Limits | |

Cp | 0.354967 | 0.305565 | 0.404288 |

CPL | 0.420991 | 0.332644 | 0.508117 |

CPU | 0.288943 | 0.211699 | 0.365112 |

Cpk | 0.288943 | 0.212210 | 0.365677 |

Cpm | 0.348203 | 0.301472 | 0.398228 |

Frequency Counts | |||
---|---|---|---|

Value | Count | Percents | |

Cell | Cum | ||

11.90 | 1 | 1.0 | 1.0 |

11.91 | 3 | 3.0 | 4.0 |

11.93 | 1 | 1.0 | 5.0 |

11.94 | 2 | 2.0 | 7.0 |

11.95 | 3 | 3.0 | 10.0 |

11.96 | 8 | 8.0 | 18.0 |

11.97 | 6 | 6.0 | 24.0 |

11.98 | 6 | 6.0 | 30.0 |

11.99 | 10 | 10.0 | 40.0 |

12.00 | 11 | 11.0 | 51.0 |

12.01 | 5 | 5.0 | 56.0 |

12.02 | 6 | 6.0 | 62.0 |

12.03 | 6 | 6.0 | 68.0 |

12.04 | 6 | 6.0 | 74.0 |

12.05 | 10 | 10.0 | 84.0 |

12.06 | 6 | 6.0 | 90.0 |

12.07 | 4 | 4.0 | 94.0 |

12.09 | 2 | 2.0 | 96.0 |

12.10 | 1 | 1.0 | 97.0 |

12.11 | 2 | 2.0 | 99.0 |

12.13 | 1 | 1.0 | 100.0 |

In Figure 5.2, the table labeled *Specification Limits* lists the specification limits and target value, together with the percents of observations outside and between the limits.
The table labeled *Process Capability Indices* lists estimates for the standard process capability indices ^{[8]} , , , , and , along with 95% confidence limits. The index is not computed unless you specify a TARGET= value. See Standard Capability Indices for formulas used to compute the indices.

If you specify more than one variable in the VAR statement, you can provide corresponding specification limits and target values by specifying lists of values for the LSL=, USL=, and TARGET= options. As an alternative to the SPEC statement, you can read specification limits and target values from a data set specified with the SPEC= option in the PROC CAPABILITY statement. This is illustrated in Example 5.1.

The FREQ option in the PROC CAPABILITY statement requests the table labeled *Frequency Counts* in Figure 5.2.

^{[8] }In SAS 6.12 and earlier releases, the capability index k was also included in this table; this index is now provided in the table labeled *Specialized Capability Indices*, which you can request with the SPECIALINDICES option.