/* Sample SAS code and data for problem 2.20 */ DATA digits; INPUT digit occur; cards; 1 109 2 75 3 77 4 99 5 72 6 117 7 89 8 62 9 43 ; title 'Problem 2.20: Digit occurrence'; proc insight; open digits; dist digit; run; /* To produce a bar graph of DIGIT: */ /* After running PROC INSIGHT and before closing the PROC INSIGHT displays, */ /* click on the "Analyze" menu, then choose "Histogram/Bar Chart". */ /* Click DIGIT, then click "Y". Click OCCUR, then click "FREQ". */ /* Click "OK". A bar graph should appear. */ /* To improve the look of it, */ /* click on the arrow at the bottom left of the graph. Choose "Ticks". */ /* Set First Tick to 1, Last Tick to 9 */ /* and Tick Increment to 1. */ /* Set Axis Minimum to 1, Axis Maximum to 10. */ /* Click "OK". */