全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 LISREL、AMOS等结构方程模型分析软件
4057 2
2018-02-21

dm 'log;clear;output;clear';

options nodate nocenter pageno=1;

title1 'a';

data one;

input co $ mo $ tre $ per;

cards;

C1  30% 30%-Unfilled  72

C1  30% 30%-Unfilled  77

C1  30% 30%-Unfilled  72

C1  30% 30%-Unfilled  78

C1  30% 30%-Unfilled  75

C1  30% 30%-Unfilled  71

C1  30% 30%-Soil   33

C1  30% 30%-Soil   29

C1  30% 30%-Soil   0

C1  30% 30%-Soil   47

C1  30% 30%-Soil   50

C1  30% 30%-Soil   62

C1  30% 30%-clay   83

C1  30% 30%-clay   76

C1  30% 30%-clay   78

C1  30% 30%-clay   77

C1  30% 30%-clay   80

C1  30% 30%-clay   84

C1  60% 60%-Unfilled  95

C1  60% 60%-Unfilled  96

C1  60% 60%-Unfilled  91

C1  60% 60%-Unfilled  90

C1  60% 60%-Unfilled  94

C1  60% 60%-Unfilled  91

C1  60% 60%-Soil   100

C1  60% 60%-Soil   79

C1  60% 60%-Soil   93

C1  60% 60%-Soil   80

C1  60% 60%-Soil   95

C1  60% 60%-Soil   85

C1  60% 60%-clay   92

C1  60% 60%-clay   93

C1  60% 60%-clay   90

C1  60% 60%-clay   86

C1  60% 60%-clay   95

C1  60% 60%-clay   82

C2  30% 30%-Unfilled  0

C2  30% 30%-Unfilled  0

C2  30% 30%-Unfilled  0

C2  30% 30%-Unfilled  0

C2  30% 30%-Unfilled  0

C2  30% 30%-Unfilled  0

C2  30% 30%-Soil   0

C2  30% 30%-Soil   0

C2  30% 30%-Soil   0

C2  30% 30%-Soil   0

C2  30% 30%-Soil   0

C2  30% 30%-Soil   0

C2  30% 30%-clay   79

C2  30% 30%-clay   0

C2  30% 30%-clay   77

C2  30% 30%-clay   0

C2  30% 30%-clay   75

C2  30% 30%-clay   69

C2  60% 60%-Unfilled  86

C2  60% 60%-Unfilled  76

C2  60% 60%-Unfilled  76

C2  60% 60%-Unfilled  81

C2  60% 60%-Unfilled  75

C2  60% 60%-Unfilled  72

C2  60% 60%-Soil   85

C2  60% 60%-Soil   72

C2  60% 60%-Soil   80

C2  60% 60%-Soil   64

C2  60% 60%-Soil   65

C2  60% 60%-Soil   51

C2  60% 60%-clay   72

C2  60% 60%-clay   82

C2  60% 60%-clay   82

C2  60% 60%-clay   89

C2  60% 60%-clay   93

C2  60% 60%-clay   87

C3  30% 30%-Unfilled  18

C3  30% 30%-Unfilled  1

C3  30% 30%-Unfilled  44

C3  30% 30%-Unfilled  0

C3  30% 30%-Unfilled  0

C3  30% 30%-Unfilled  0

C3  30% 30%-Soil   0

C3  30% 30%-Soil   0

C3  30% 30%-Soil   0

C3  30% 30%-Soil   0

C3  30% 30%-Soil   0

C3  30% 30%-Soil   0

C3  30% 30%-clay   76

C3  30% 30%-clay   73

C3  30% 30%-clay   79

C3  30% 30%-clay   72

C3  30% 30%-clay   60

C3  30% 30%-clay   61

C3  60% 60%-Unfilled  76

C3  60% 60%-Unfilled  74

C3  60% 60%-Unfilled  84

C3  60% 60%-Unfilled  84

C3  60% 60%-Unfilled  90

C3  60% 60%-Unfilled  82

C3  60% 60%-Soil   7

C3  60% 60%-Soil   7

C3  60% 60%-Soil   5

C3  60% 60%-Soil   20

C3  60% 60%-Soil   13

C3  60% 60%-Soil   4

C3  60% 60%-clay   81

C3  60% 60%-clay   82

C3  60% 60%-clay   92

C3  60% 60%-clay   87

C3  60% 60%-clay   73

C3  60% 60%-clay   75

;

run;

proc mixed data=one;

class co mo tre;

model per=mo tre co mo*tre mo*co tre*co mo*tre*co/htype=3;

random co;

lsmeans mo*tre/pdiff adjust=tukey;

run;




二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2018-2-22 02:31:30
你用了3-way full model, 但是并不是所有的组合都有观测值,所以数据不支持这个模型,看看d.f. 值或者 用 proc freq 就能发现了. 事实上 mo 和tre nested, 你应该从模型中去掉 mo 和 random statement, 用2-way ANOVA.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2018-2-22 21:56:33
gerryli 发表于 2018-2-22 02:31
你用了3-way full model, 但是并不是所有的组合都有观测值,所以数据不支持这个模型,看看d.f. 值或者 用 p ...
非常感谢你的回答
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群