本人SAS菜鸟,初次使用SAS中的《重复观察资料列联表的对数线性模型》
用书上例子中的数据运行时可以得到正常的结果,但是把数据改成自己的实验数据后(如下文),就出现了
ERROR:The response functions are linearly dependent since the number of functions per population, 8, is greater than or equal to the number of response levels, 6, in population 2.
请问各位牛人这是哪里出了问题呢?先谢过了!
options nodate nonumber;
data loglin3;
input g obs1 obs2 f@@;
cards;
1 1 4 0 1 1 1 3 1 1 2 0 1 1 3 0 1 1 5 1
1 2 4 1 1 2 1 7 1 2 2 0 1 2 3 1 1 2 5 0
1 3 4 3 1 3 1 7 1 3 2 1 1 3 3 1 1 3 5 1
1 4 4 1 1 4 1 3 1 4 2 1 1 4 3 0 1 4 5 1
1 5 4 0 1 5 1 5 1 5 2 0 1 5 3 1 1 5 5 1
2 5 1 0 2 5 2 0 2 5 3 1 2 5 4 0 2 5 5 22
2 4 1 0 2 4 2 0 2 4 3 0 2 4 4 2 2 4 5 7
2 3 1 0 2 3 2 0 2 3 3 0 2 3 4 0 2 3 5 1
2 2 1 0 2 2 2 0 2 2 3 0 2 2 4 0 2 2 5 2
;
proc catmod;
weight f;
response marginals;
model obs1*obs2=g _response_ g*_response_/freq nodesign;
repeated observer 2;
run;