/* Sample SAS code and data for problem 2.40 */ DATA satscore; INPUT state $ sat1990 sat2000; differ = sat2000 - sat1990; cards; Alabama 1079 1114 Alaska 1015 1034 Arizona 1041 1044 Arkansas 1077 1117 California 1002 1015 Colorado 1067 1071 Connecticu 1002 1017 Delaware 1006 998 D.C. 950 980 Florida 988 998 Georgia 951 974 Hawaii 985 1007 Idaho 1066 1081 Illinois 1089 1154 Indiana 972 999 Iowa 1172 1189 Kansas 1129 1154 Kentucky 1089 1098 Louisiana 1088 1120 Maine 991 1004 Maryland 1008 1016 Massachuse 1001 1024 Michigan 1063 1126 Minnesota 1110 1175 Mississipp 1090 1111 Missouri 1089 1149 Montana 1082 1089 Nebraska 1121 1131 Nevada 1022 1027 NHampshire 1028 1039 NJersey 993 1011 NMexico 1100 1092 NewYork 985 1000 NCarolina 948 988 NDakota 1157 1197 Ohio 1048 1072 Oklahoma 1095 1123 Oregon 1024 1054 Pennsylvan 987 995 RIsland 986 1005 SCarolina 942 966 SDakota 1150 1175 Tennessee 1102 1116 Texas 979 993 Utah 1121 1139 Vermont 1000 1021 Virginia 997 1009 Washington 1024 1054 WestVA 1034 1037 Wisconsin 1111 1181 Wyoming 1072 1090 ; title 'Problem 2.40: SAT scores'; proc insight; open satscore; dist sat1990 sat2000; run; /* To produce side-by-side histograms of sat1990 and sat2000: */ /* After running PROC INSIGHT and before closing the PROC INSIGHT displays, */ /* click on the "Analyze" menu, then choose "Histogram/Bar Chart". */ /* Click SAT1990, then click "Y". Click SAT2000, then click "Y" again. */ /* Click "OK". Two histograms side by side should appear. */ proc insight; open satscore; dist differ; run;