Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
CDFPLOT Statement

Syntax

The syntax for the CDFPLOT statement is as follows:

CDFPLOT <variables > < / options >;

You can specify the keyword CDF as an alias for CDFPLOT. You can specify any number of CDFPLOT statements after a PROC CAPABILITY statement. The components of the CDFPLOT statement are described as follows:

variables
specify variables for which to create cdf plots. If you specify a VAR statement, the variables must also be listed in the VAR statement. Otherwise, the variables can be any numeric variables in the input data set. If you do not specify variables in a CDFPLOT statement, then a cdf plot is created for each variable listed in the VAR statement, or for each numeric variable in the input data set if you do not use a VAR statement.

For example, suppose a data set named STEEL contains exactly three numeric variables, LENGTH, WIDTH and HEIGHT. The following statements create a cdf plot for each of the three variables:
   proc capability data=steel;
      cdfplot;
   run;
The following statements create a cdf plot for LENGTH and a cdf plot for WIDTH:
   proc capability data=steel;
      var length width;
      cdfplot;
   run;


The following statements create a cdf plot for WIDTH:
   proc capability data=steel;
      var length width;
      cdfplot width;
   run;


By default, the horizontal axis of a cdf plot is labeled with the variable name. If you specify a label for a variable, however, the label is used. The default vertical axis label is Cumulative Percent, and the axis is scaled in percent of observations.

If you specify a SPEC statement or a SPEC= data set in addition to the CDFPLOT statement, then the specification limits for each variable are displayed as reference lines and are identified in a legend.

options
add features to plots. All options appear after the slash (/) in the CDFPLOT statement. In the following example, the NORMAL option superimposes a normal cdf on the plot, and the CTEXT= option specifies the color of the text.
   proc capability data=steel;
      cdfplot length / normal
                       ctext = yellow;
   run;



Summary of Options

Dictionary of Options

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.