|
Chapter Contents |
Previous |
Next |
| HISTOGRAM Statement |
The syntax for the HISTOGRAM statement is as follows:
For example, suppose a data set named STEEL contains exactly two numeric variables named LENGTH and WIDTH. The following statements create two histograms, one for LENGTH and one for WIDTH:
proc capability data=steel;
histogram;
run;
Likewise, the following statements create histograms for LENGTH
and WIDTH:
proc capability data=steel;
var length width;
histogram;
run;
The following statements create a histogram for LENGTH only:
proc capability data=steel;
var length width;
histogram length;
run;
For example, in the following statements, the NORMAL option displays a fitted normal curve on the histogram, the MIDPOINTS= option specifies midpoints for the histogram, and the CTEXT= option specifies the color of the text:
proc capability data=steel;
histogram length / normal
midpoints = 5.6 5.8 6.0 6.2 6.4
ctext = yellow;
run;
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.