《研究生SAS教程第五次上机.ppt》由会员分享,可在线阅读,更多相关《研究生SAS教程第五次上机.ppt(21页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、data ex;do a=1 to 3;do b=1 to 3;do i=1 to 5;input x;output;end;end;end;cards;0.7 0.6 0.9 0.5 0.6 0.9 0.9 0.7 1.1 0.70.8 0.6 0.9 1.0 0.8 1.2 1.4 1.6 1.2 1.51.1 0.9 1.3 1.2 1.0 1.5 1.4 0.9 1.3 1.60.6 0.6 0.8 0.9 0.7 0.5 0.8 0.9 1.0 0.60.6 1.2 0.8 0.9 1.0;proc anova;class a b;model x=a b(a);means a/lsd
2、 cldiff;run;1.proc anova方差分析方差分析 二级套方差分析二级套方差分析 Dependent Variable:x Sum of Source DF Squares Mean Square F Value Pr F Model 8 2.80044444 0.35005556 10.07 F a 2 2.36977778 1.18488889 34.07 F Model 1 112.48368 112.48368 387.52|t|Intercept 1 0.25695 0.53235 0.48 0.6441 x 1 2.93028 0.14886 19.69 FModel
3、 2 356.08333333 178.04166667 6.34 0.0070Error 21 589.75000000 28.08333333C Total 23 945.83333333 R-Square Coeff Var Root MSE x Mean 0.376476 9.798529 5.299371 54.08333 Source DF Anova SS Mean Square F Value Pr F a 2 356.0833333 178.0416667 6.34 0.0070 Dependent Variable:YSource DF Sum of Squares Mea
4、n Square F Value Pr FModel 2 60.75000000 30.37500000 0.77 0.4767Error 21 830.87500000 39.56547619C Total 23 891.62500000the ANOVA ProcedureR-Square Coeff Var Root MSE y Mean 0.068134 10.37544 6.290109 60.62500 Source DF Anova SS Mean Square F Value Pr F a 2 60.75000000 30.37500000 0.77 0.4767 Depend
5、ent Variable:YSource DF Sum of Squares Mean Square F Value Pr FModel 3 842.79453688 280.93151229 115.06 0.0001 X 1 782.04453688 782.04453688 320.31 0.0001 A 2 222.84063820 111.42031910 45.64 0.0001Error 20 48.83046312 2.44152316C Total 23 891.62500000The GLM ProcedureR-Square Coeff Var Root MSE y Me
6、an 0.945234 2.577381 1.562537 60.62500 Source DF Type I SS Mean Square F Value Pr F x 1 619.9538987 619.9538987 253.92 .0001 a 2 222.8406382 111.4203191 45.64 F x 1 782.0445369 782.0445369 320.31 .0001 a 2 222.8406382 111.4203191 45.64|t|Intercept 2.013485587 B 3.38316481 0.60 0.5584 x 1.151547266 0.06434228 17.90 .0001 a 1 -2.223452734 B 0.78391372 -2.84 0.0102 a 2 -8.780547902 B 0.92253935 -9.52|t|for H0:LSMean(i)=LSMean(j)Dependent Variable:y i/j 1 2 3 1 .0001 0.0306 2 .0001 .0001 3 0.0306 .0001 t Grouping Mean N a A 61.750 8 3 A A 61.750 8 2 A A 58.375 8 1 t Tests(LSD)for y