HOMEWORK #1 due Tuesday 9-20
Text references are to Cody & Smith,
ORGANIZE YOUR HOMEWORK in the following manner:
The problems:
1. Text page 19, problem #1-1.
2. Text page 19, problem #1-3, and page 64, problem #2-3.
(Do as one problem.)
Problems 3-5 depend on the following data for the 47 current employees of Vaporlock Computer Services:
67 123 F 67 143 M 69 174 M 64 127 F
61 116 F 70 159 M 71 142 M 66 146 F
61 128 F 59 139 F 65 127 F 69 172 M
64 166 M 63 120 F 69 166 M 67 152 F
62 153 F 60 152 F 66 168 M 66 155 M
71 145 M 64 164 M 72 168 M 64 123 F
64 135 F 68 158 M 63 159 M 71 177 M
65 158 M 63 169 M 60 139 F 71 177 M
65 150 F 63 145 M 62 141 F 64 118 F
64 168 M 66 151 F 68 171 M 63 158 M
63 146 M 68 149 M 66 162 M 68 144 F
61 131 F 72 179 M 62 142 F
3. (i) Enter the data in Table 1 into a SAS program in a data step with variables for height, weight, and sex. Construct a scatter plot of heights (Y-variable) by weights (X-variable) using sex as the plotting symbol.
Height: 1: le 63 Weight: 1: le 119
2: ge 64 2: 120 to 137
3: 138 to 170
4: ge 171
where le means `less than or equal to' and ge means
`greater than or equal to'.
4. For the data in Table 1,
Prob>F' = .... mean in the output? What
hypothesis H_0 is SAS testing here? Does SAS accept it or reject it? What
is the P-value?
5. For the data in Table 1,
by sex; to SAS's proc corr, then SAS will
stratify by sex and run proc corr within each sex.)
by var;'' in
SAS, then SAS stratifies by contiguous groups with the same value of
var. Thus to compute within-sex correlations, you must first
sort the data by sex, so that all Fs occur together and all Ms occur
together. In contrast, ``class var;'' in SAS will usually let
you stratify by values of var without sorting, but proc
corr; does not currently support ``class var;''. Make
sure that you get valid output.)