I am using the histogram command to plot data from a small sample of exam scores (26 observations). The scores are integer numbers, so I am using the w(1) option sp that histogram displays one integer value per bin.
Oddly, whatever the top value is in the distribution of exam scores appears to be plotted one bin too low. (For example, if the top score is 84, it is plotted in the “83” bin; if the top score is 89 it is plotted in the “88” bin.) I have experimented a bit with different values, and I can make formerly incorrectly plotted observations be plotted correctly by adding a new top value (which is then itself incorrectly plotted).
I have attached a log file that has screen shots of the corresponding histograms inserted. I have also listed the data, so it should be possible to recreate what I have done. Is there something I am not understanding about how the histogram command works, or with the options I am specifying?
Oddly, whatever the top value is in the distribution of exam scores appears to be plotted one bin too low. (For example, if the top score is 84, it is plotted in the “83” bin; if the top score is 89 it is plotted in the “88” bin.) I have experimented a bit with different values, and I can make formerly incorrectly plotted observations be plotted correctly by adding a new top value (which is then itself incorrectly plotted).
I have attached a log file that has screen shots of the corresponding histograms inserted. I have also listed the data, so it should be possible to recreate what I have done. Is there something I am not understanding about how the histogram command works, or with the options I am specifying?
Comment