【正文】
ANOVA of Squared Deviations from Group Means Sum of Mean Source DF Squares Square F Value Pr F C 3 Error 16 Analysis of Variance Procedure Level of X C N Mean SD 1 5 2 5 3 5 4 5 2022年 6月 23日 43 例 13: 程序 53 樣本含量不等時(shí)方差分析 data anova3。 do c=1 to 3。 input n。 do i=1 to n。 input x @@。 output。 end。 end。 cards。 5 279 334 303 338 198 3 229 274 310 3 210 285 117 。 proc anova。 class c。 model x=c。 run。 2022年 6月 23日 44 ? 隨機(jī)區(qū)組設(shè)計(jì)資料的方差分析 data anova4。 do a=1 to 4。 do b=1 to 8。 input x @@。 output。 end。 end。 cards。 。 proc anova。 class a b。 model x=a b。 means a/snk。 run。 例 14 程序 54 2022年 6月 23日 45 方差分析結(jié)果 Analysis of Variance Procedure Class Level Information Class Levels Values A 4 1 2 3 4 B 8 1 2 3 4 5 6 7 8 Number of observations in data set = 32 2022年 6月 23日 46 Analysis of Variance Procedure Dependent Variable: X Source DF Sum of Squares Mean Square F Value Pr F Model 10 Error 21 Total 31 RSquare . Root MSE X Mean Source DF Anova SS Mean Square F Value Pr F A 3 B 7 2022年 6月 23日 47 Analysis of Variance Procedure StudentNewmanKeuls test for variable: X NOTE: This test controls the type I experimentwise error rate under the plete null hypothesis but not under partial null hypotheses. Alpha= df= 21 MSE= Number of Means 2 3 4 Critical Range Means with the same letter are not significantly different. SNK Grouping Mean N A A 8 1 A 8 2 B 8 3 C 8 4 2022年 6月 23日 48 ? 拉丁方設(shè)計(jì)資料的方差分析 拉丁方設(shè)計(jì)的方差分析主要適用于: 三個(gè)處理水平數(shù)相同且無(wú)交互作用。 亦稱三因素方差分析。 利用拉丁方陣安排試驗(yàn),拉丁方陣亦稱 r階拉丁方,是用 r個(gè)拉丁字母排成 r行 r列的方陣,每個(gè)字母在每行每列中只出現(xiàn)一次。如 5 5拉丁方: A B C D E B C D E A C D E A B D E A B C E A B C D 2022年 6月 23日 49 如例 55, 5種防護(hù)服 (cloth),有 5個(gè)人 (person)個(gè)在不同的5天 (date)中穿著,測(cè)定脈搏數(shù)。如表 。試驗(yàn)就 5種防護(hù)服對(duì)脈搏數(shù)有無(wú)作用。 表 5可見(jiàn), 5種防護(hù)服在 5個(gè)不同的日期和 5個(gè)不同的受試者各出現(xiàn)一次;在同一日期和不同受試者 5種防護(hù)服各不相同。 2022年 6月 23日 50 例 15 程序 55 data anova5。 do date=1 to 5。 do person=1 to 5。 input cloth $ x @@。 output。 end。 end。 cards。 A B C D E B C D E A C D E A B D E A B C E A B C D 。 proc anova。 class date person cloth。 model x=date person cloth。 run。 2022年 6月 23日 51 SAS分析結(jié)果 Analysis of Variance Procedure Class Level Information Class Levels Values DATE 5 1 2 3 4 5 PERSON 5 1 2 3 4 5 CLOTH 5 A B C D E Number of observations in data set = 25 2022年 6月 23日 52 Analysis of Variance Procedure Dependent Variable: X Source DF Sum of Squares Mean Square F Value Pr F Model 12 Error 12 Total 24 RSquare . Root MSE X Mean Source DF Anova SS Mean Square F Value Pr F DATE 4 PERSON 4 CLOTH 4 2022年 6月 23日 53 例 16 王潔貞主編 《 醫(yī)學(xué)統(tǒng)計(jì)學(xué) 》 例 data anova6。 do dose=1 to 4。 do tumor=1 to 4。 input drug $ x @@。 output。 end。 end。 cards。 C B A D B A D C A D C B D C B A 。 proc anova。 class tumor dose drug。 model x=tumor dose drug。 run。 2022年 6月 23日 54 Analysis of Variance Procedure Dependent Variable: X Source DF Sum of Squares Mean Square F Value Pr F Model 9 Error 6 Total 15 RSquare . Root MSE X Mean Source DF Anova SS Mean Square F Value Pr F TUMOR 3 DOSE 3 DRUG 3