全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1487 0
2009-09-04
1.
1.Enter the following data into SAS using an appropriate data step. SES stands for Socio Economic Status.

SES of adoptive parentsSES of biological parentsIQ scores of adopted children
highhigh136,99,121,133,125,131,103,115,116,117
highlow94,103,99,125,111,93,101,94,125,91
lowhigh98,99,91,124,100,116,113,119
lowlow92,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!






































二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群