资源描述:
《SAS作业》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、SAS作业2011级栽培生理班2011301110033唐红玲SAS课后习题作业院系:植物科学技术学院学号:2011301110033姓名:唐红玲二O一一年十二月15SAS作业2011级栽培生理班2011301110033唐红玲习题2.1.1观测200头某品种仔猪的一月窝重(单位:kg)得到频数表如下:组下限组上限组中值频数7.523.515.51023.539.531.51939.555.547.53055.571.563.56171.587.579.54987.5103.595.524103.5119.5111.57试用SAS作样本观测值
2、整理后的描述性统计,并画出样本观测值的频率分布直方图。解:dataex;inputxf@@;cards;15.51031.51947.53063.56179.54995.524111.57;procunivariate;varx;freqf;run;Variable:xQuantiles(Definition5)datahist01;inputx@@;cards;15.515.515.515.515.515.515.515.515.515.531.531.531.531.531.531.531.531.531.531.531.531.531.
3、531.531.531.531.531.531.547.547.547.547.547.547.547.547.547.547.547.547.547.547.547.547.547.547.547.547.547.547.547.547.547.547.547.547.547.547.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.56
4、3.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.563.579.579.579.579.579.579.579.579.579.579.579.579.579.579.579.579.579.579.579.579.515SAS作业2011级栽培生理班2011301110033唐红玲79.579.579.579.579.579.579.579.579.579.579.579
5、.579.579.579.579.579.579.579.579.579.579.579.579.579.579.579.579.579.595.595.595.595.595.595.595.595.595.595.595.595.595.595.595.595.595.595.595.595.595.595.595.595.5111.5111.5111.5111.5111.5111.5111.5;procgchart;vbarx/type=pctspace=0;run;习题2.4.1已知我国14岁女学生的平均体重为43.38kg,从该年龄
6、的女学生中抽查10名运动员的体重,分别为39,36,43,43,40,46,45,45,42,41kg。试用SAS检验这些运动员的体重与上述平均体重是否有显著的差异(α=0.05)解:假设H0:μ=43.38,运动员体重与平均体重无显著差异HA:μ≠43.38,运动员体重与平均体重有显著差异dataex;inputx@@;y=x-43.38;cards;39364343404645454241;procmeansmeanstdtprt;vary;run;SAS结果:因为P{
7、X
8、>
9、T
10、}>0.05,所以接受H0:μ=43.38,即运动员体重
11、与平均体重无显著差异.15SAS作业2011级栽培生理班2011301110033唐红玲习题2.4.2某小麦品种经过4代选育,从第5代和第6代中分别抽出10株得到它们株高的观测值分别为66,65,66,68,62,65,63,66,68,62以及64,61,57,65,65,63,62,63,64,60.试用SAS检验这两代的株高是否有显著的差异(=0.05)解:dataex;doa=1to2;doi=1to10;inputx@@;output;end;end;cards;66656668626563666862646157656563626
12、36460;procttestcochran;classa;varx;procprint;run;ANMeanStdDevStdError11065.12.1833