谁会用sas做方差分析啊?急求啊数据如下
发布网友
发布时间:2022-04-23 15:30
我来回答
共1个回答
热心网友
时间:2023-09-08 02:01
data anova_test;
do factor=1 to 7;
do k1=1 to 3;
input pv @@;
pv1=pv/100;
output;
end;
end;
cards;
94.50 95.60 89.40
89.50 96.50 94.00
60.30 56.80 84.20
85.40 88.10 83.30
66.90 75.90 75.90
86.40 81.10 85.10
65.40 36.60 41.60
;
proc anova data=anova_test;
class factor;
model pv1=factor;
title '方差分析';
run;
结果:
方差分析 8
2012年06月13日 星期三 上午09时59分08秒
The ANOVA Procere
Dependent Variable: pv1
Sum of
Source DF Squares Mean Square F Value Pr > F
Model 6 0.48410895 0.08068483 10.80 0.0001
Error 14 0.10462600 0.00747329
Corrected Total 20 0.58873495
R-Square Coeff Var Root MSE pv1 Mean
0.822287 11.12044 0.086448 0.777381
Source DF Anova SS Mean Square F Value Pr > F
factor 6 0.48410895 0.08068483 10.80 0.0001