欢迎来到天天文库
浏览记录
ID:44703496
大小:49.01 KB
页数:7页
时间:2019-10-25
《sas典型程序运行及结果解读》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、例1.1DATAeg15;DOrep=1TO5;DOtreat=1TO6;INPUTx@@;OUTPUT;END;END;CARDS;2.94.02.60.54.64.02.33.83.20.84.63.32.23.83.40.74.43.72.53.63.40.84.43.52.73.63.00.54.43.7;PROCANOVA;CLASStreatrep;MODELx=treat;MEANStreat/t;RUN;SAS系统2012年03月27日星期二下午02时55分40秒2TheANOV
2、AProcedureDependentVariable:xSumofSourceDFSquaresMeanSquareFValuePr>FModel544.463000008.89260000164.17<.0001Error241.300000000.05416667CorrectedTotal2945.76300000R-SquareCoeffVarRootMSExMean0.9715937.6811000.2327373.030000SourceDFAnovaSSMeanSquareFVa
3、luePr>Ftreat544.463000008.89260000164.17<.0001SAS系统2012年03月27日星期二下午02时55分40秒3TheANOVAProceduretTests(LSD)forxNOTE:ThistestcontrolstheTypeIcomparisonwiseerrorrate,nottheexperimentwiseerrorrate.Alpha0.05ErrorDegreesofFreedom24ErrorMeanSquare0.054167Cri
4、ticalValueoft2.06390LeastSignificantDifference0.3038Meanswiththesameletterarenotsignificantlydifferent.tGroupingMeanNtreatA4.480055B3.760052BB3.640056C3.120053D2.520051E0.660054例3.1datafitness;inputname$&agesex$highweight;cards;zhangsa28m1.7560lisi27
5、f1.7258wangwu31f1.8065;procprint;run;输出结果:SAS系统22:17Saturday,November1,20031Obsnameagesexhighweight1zhangsa28m1.75602lisi27f1.72583wangwu31f1.8065例3.3datafitness;inputname$1-8age10-11sex$13high15-18.2weight20-21;cards;zhangsa28m1.7560lisi27f1.7258wan
6、gwu31f1.8065;procprint;run;例3.6程序datacc;inputa$b@@;cards;a1b2c3d4;procprint;run;输出结果:SAS系统21:00Monday,April7,20031Obsab1a12b23c34d4例3.10程序dataa(drop=ab);inputa$b$x3-x5;ifa="y"thenx1=1;ifa="n"thenx1=0;ifb="y"thenx2=1;ifb="n"thenx2=0;cards;yy0.10.30.4y
7、n0.50.90.8ny0.70.80.5;procprint;run;输出结果SAS系统21:00Monday,April7,20032Obsx3x4x5x1x210.10.30.41120.50.90.81030.70.80.501例3.16程序dataa;doi=1to4;inputx@@;output;end;cards;1234567890;procprint;run;输出结果SAS系统21:00Monday,April7,20033Obsix111222333444515626737
8、8489191020例3.17(数据中心化)程序arrayxx{4}x1-x4(0000);doj=1to4;doi=1to3;xx{j}=xx{j}+yy{i,j};end;xx{j}=xx{j}/3;end;doi=1to3;doj=1to4;yy{i,j}=yy{i,j}-xx{j};end;end;output;doi=1to3;doj=1to4;xx{j}=yy{i,j};end;output;end;cards;123456789012procprint;run;输出结果SAS系统2
此文档下载收益归作者所有