Chapter Contents |
Previous |
Next |
HISTOGRAM Statement |
See CAPGOF in the SAS/QC Sample Library |
A weakness of the chi-square goodness-of-fit test is its dependence on the choice of histogram midpoints. An advantage of the EDF tests is that they give the same results regardless of the midpoints, as illustrated in this example.
In Example 4.2, the option MIDPOINTS=0.2 TO 1.8 BY 0.2 was used to specify the histogram midpoints for GAP. The following statements refit the lognormal distribution using default midpoints (0.3 to 1.8 by 0.3).
title1 'Distribution of Plate Gaps'; legend1 frame cframe=ligr cborder=black position=center; proc capability data=plates noprint; var gap; specs lsl = 0.3 llsl = 2 clsl=black usl = 0.8 lusl = 20 cusl=black; histogram / lognormal (l=1 color=yellow w=3) nospeclegend vaxis = axis1 legend = legend1 cfill = purple cframe = ligr; inset n mean(5.3) std='Std Dev'(5.3) skewness(5.3) / header = 'Summary Statistics' cfill = blank pos = ne cfill = blank; axis1 label=(a=90 r=0); run;
The histogram is shown in Output 4.3.1.
Output 4.3.1: Lognormal Curve Fit with Default Midpoints
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.