Problem 9.a Extra

advertisement
Problem 9.a Extra
Order the US states in a circuitous fashion by drawing a line from state to state until all states are
included. Then reorder the statepps.dat in the order that you have drawn and draw a systematic sample of
size 10. Hints: Once I got my ordering line, I labeled the states from 1 to 50 and put that number in the
first two columns of the statepps.dat. Note that District of Colombia is in the data set. I didn’t see it on
the map, but fortunately my first state was Maryland, so I just let DC be 0. I also forgot Alaska and
Hawaii, so I just made them 49 and 50. Then I sorted on the label number to get the data set in the right
order and then accumulated the landarea via
data two;set one;retain cum_area;cum_area+landarea;run;
Now just draw a systematic sample of size 10 based on cum_area. Finally, print out this map again and
mark which states were selected in 6.9a and which ones were selected this time.
Download