统计分析sas练习

统计分析sas练习

ID:33913527

大小:224.51 KB

页数:16页

时间:2019-03-02

统计分析sas练习_第1页
统计分析sas练习_第2页
统计分析sas练习_第3页
统计分析sas练习_第4页
统计分析sas练习_第5页
资源描述:

《统计分析sas练习》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、第七章t检验单样本t检测,用means、univariatedatatemp;inputx@@;y=x-20.7;cards;20.9920.4120.1020.0020.9122.6020.9920.4220.9022.9923.1220.89;procmeansmeanstderrtprobt;vary;run;datatemp;inputx@@;y=x-20.7;cards;20.9920.4120.1020.0020.9122.6020.9920.4220.9022.9923.1220.89;procunivari

2、atenormal;vary;run;无原始数据的单样本t检验:datatemp;inputu0u1sn;t=(u1-u0)/(s/sqrt(n));v=n-1;p=probt(t,v);cards;7274.26.525;procprint;run;配对的t检测:有两个对比的检测有ttestmeansunivariatedatatemp;inputidab;cards;12.412.8022.903.0432.751.8842.233.4353.673.8164.494.0075.164.4485.455.4192.06

3、1.24101.641.83111.061.45120.770.92;procttest;paireda*b;run;datatemp;inputidab;y=a-b;cards;12.412.8022.903.0432.751.8842.233.4353.673.8164.494.0075.164.4485.455.4192.061.24101.641.83111.061.45120.770.92;procunivariatenormal;vary;run;正态性检测:wp,t=0.162pr=0.87>0.05,接受H

4、0;datatemp;inputidab;y=a-b;cards;12.412.8022.903.0432.751.8842.233.4353.673.8164.494.0075.164.4485.455.4192.061.24101.641.83111.061.45120.770.92;procmeansmeanstderrtprobt;vary;run;datatemp;inputdsn;t=d/(s/sqrt(n));v=n-1;p=probt(t,v);cards;0.6250.788;procprint;run;

5、独立样本t检测datatemp;inputgroupx@@;cards;11341146110411191124116111071831113112919711232702118210128521072132294procttest;classgroup;varx;run;datatemp;inputx1x2n1n2s1s2;sc=sqrt((1/n1+1/n2)*((n1-1)*s1**2+(n2-1)*s2**2)/(n1+n2-2));t=(x2-x1)/sc;v=n1+n2-2;p=probt(t,v);cards

6、;20.9521.7920205.893.43;procprint;run;第九章直线回归和相关dataexam9_1;inputx1x2@@;cards;1.213.901.304.501.394.201.424.831.474.161.564.931.684.321.724.991.984.702.105.20;procgplot;/*拓扑图*/plotx2*x1='*';/*图*/run;proccorr;varx1x2;run;相关性相关系数为:0.68073。p为0.0303dataexm9_2;inputxy@

7、@;cards;7945803091169024702887259214;proccorrspearman;varxy;run;直线回归dataexm9_3;inputxy@@;cards;25.59.219.57.824.09.420.58.625.09.022.08.821.59.023.59.426.59.723.59.426.59.723.58.822.08.520.08.228.09.9;procreg;modely=x/rclm;/*针对每一条的观测的输出*/run;多元线性回归datatemp;inputx1

8、x2x3y;cards;51.373.636.42.9948.983.934.03.1142.878.331.01.9155.077.131.02.6345.381.730.02.8645.374.832.01.9151.473.736.52.9853.879.437.03.2849.072.630.1

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。