1.
1.Enter the following data into SAS using an appropriate data step. SES stands for Socio Economic Status.
| SES of adoptive parents | SES of biological parents | IQ scores of adopted children |
| high | high | 136,99,121,133,125,131,103,115,116,117 |
| high | low | 94,103,99,125,111,93,101,94,125,91 |
| low | high | 98,99,91,124,100,116,113,119 |
| low | low | 92,91,98,83,99,68,76,115,86,116 |
I have the SAS code of first question as following:
data nature_nurture;
a: input ses_adoptive$ ses_biological$ @@;
b: input score @@;
if score=-1 then go to a;
if score=-2 then stop;
else output;
go to b;
datalines;
high high 136 99 121 133 125 131 103 115 116 117 -1
high low 94 103 99 125 111 93 101 94 125 91 -1
low high 98 99 91 124 100 116 113 119 -1
low low 92 91 98 83 99 68 76 115 86 116 -2
;
2.
2.Create a single boxplot from all the IQ scores.
3.
3.Create a single histogram from all the IQ scores.
4.
4.Create a graph containing four boxplots, one for each group (combination of SES for adoptive and biological parents).
6.
6.Create four histograms, one for each group.
7.
7.Are the IQ scores for each of the possible parents combinations normally distributed? Use graphs to investigate this question.
8.
8.Calculate the mean and standard deviation for each of the possible SES combinations of the parents.
9.
9.Create a summary data set, say IQ_SUMMARY, containing the mean and standard deviation for each of the possible SES combinations of the parents.
10.
10.Is there evidence that the IQ scores of any of the four groups is different from 100? Perform t-tests. Thanks!