/* Sample SAS code and data for problem 2.17 */ DATA computer; INPUT attack $ percent99 percent01; cards; inside 7 4 outside 38 47 both 41 22 dontknow 14 26 ; title 'Problem 2.17: Computer Use'; proc insight; open computer; dist percent99 percent01; run; /* To produce bar graphs of percent99 and percent01: */ /* After running PROC INSIGHT and before closing the PROC INSIGHT displays, */ /* click on the "Analyze" menu, then choose "Histogram/Bar Chart". */ /* Click ATTACK, then click "Y". Click PERCENT99, then click "FREQ".*/ /* Click "OK". */ /* Again click on the "Analyze" menu, then choose "Histogram/Bar Chart". */ /* Click ATTACK, then click "Y". Click PERCENT01, then click "FREQ".*/ /* Click "OK". Two bar graphs side by side should appear. */