/***** Problem 1 ****/ DATA prob1; INPUT material $ thickness protection; cards; cotton 0.25 34 cotton 0.25 42 cotton 0.25 37 cotton 0.4 44 cotton 0.4 43 cotton 0.4 51 cotton 0.55 56 cotton 0.55 52 cotton 0.55 50 polyest 0.25 65 polyest 0.25 61 polyest 0.25 68 polyest 0.4 72 polyest 0.4 67 polyest 0.4 74 polyest 0.55 81 polyest 0.55 77 polyest 0.55 76 polyprop 0.25 63 polyprop 0.25 67 polyprop 0.25 73 polyprop 0.4 68 polyprop 0.4 74 polyprop 0.4 73 polyprop 0.55 78 polyprop 0.55 85 polyprop 0.55 81 ; run; /***** Problem 2 ****/ DATA prob2; INPUT location $ advert $ sales; cards; urban none 24.5 urban none 23.4 urban TV 35.8 urban TV 34.6 urban radio 41.2 urban radio 44.6 urban TVradio 37.8 urban TVradio 34.6 suburban none 27.1 suburban none 22.4 suburban TV 33.8 suburban TV 40.6 suburban radio 32.7 suburban radio 33.4 suburban TVradio 43.4 suburban TVradio 45.9 rural none 17.4 rural none 16.3 rural TV 23.4 rural TV 22.3 rural radio 31.3 rural radio 26.4 rural TVradio 27.7 rural TVradio 24.4 ; run; /**** Problem 3 *****/ DATA prob3; INPUT drug $ reduct; cards; A 2.49 A 4.35 A 2.01 A 2.23 A 1.95 A 2.77 B 10.46 B 3.33 B 1.90 B 7.54 B 7.10 B 6.94 C 24.62 C 3.58 C 4.12 C 15.31 C 0.87 C 2.57 D 5.18 D 5.17 D 12.73 D 31.74 D 4.80 D 0.85 E 20.24 E 24.18 E 3.67 E 28.80 E 14.91 E 26.79 ; run; /* Problem 4 */ DATA prob4; INPUT fert cond $ yield; cards; 40 sunny 45.7 40 sunny 48.5 40 sunny 43.7 40 sunny 44.9 40 shaded 32.6 40 shaded 35.7 40 shaded 33.1 40 shaded 29.4 60 sunny 55.6 60 sunny 53.8 60 sunny 59.2 60 sunny 55.7 60 shaded 41.6 60 shaded 37.8 60 shaded 40.2 60 shaded 39.4 80 sunny 67.8 80 sunny 66.2 80 sunny 64.9 80 sunny 62.6 80 shaded 54.9 80 shaded 51.4 80 shaded 50.2 80 shaded 55.7 100 sunny 54.7 100 sunny 55.6 100 sunny 56.8 100 sunny 51.2 100 shaded 61.1 100 shaded 59.9 100 shaded 58.3 100 shaded 60.0 ; run;