z****k 发帖数: 1057 | 1 proc reg要研究两个变量的interaction是不是必须在data当中手动乘起来?
有没有简便的办法?
或者,是不是能用proc glm替代一下?我知道glm是支持*的
谢谢 |
w***y 发帖数: 114 | 2 proc reg data= ;
model y=x1 x2 x1*x2;
run; |
z*********o 发帖数: 541 | 3
【在 w***y 的大作中提到】 : proc reg data= ; : model y=x1 x2 x1*x2; : run;
|
z****k 发帖数: 1057 | 4 这是哪个版本的SAS啊?为什么我的不可以?
【在 w***y 的大作中提到】 : proc reg data= ; : model y=x1 x2 x1*x2; : run;
|
s*********e 发帖数: 1051 | 5 you didn't miss anything. the answer given was wrong. x * x in model
statement won't work in proc reg.
however, try it in proc glm/genmod. i would be surprised if it won't work.
please post results after you try such that others could learn as well.
thanks. |
z****k 发帖数: 1057 | 6 glm的话相应的语句应该怎么写?
我直接用model y = x1 + x2 + x1*x2
结果好像只给出ANONVA,没有coefficient
【在 s*********e 的大作中提到】 : you didn't miss anything. the answer given was wrong. x * x in model : statement won't work in proc reg. : however, try it in proc glm/genmod. i would be surprised if it won't work. : please post results after you try such that others could learn as well. : thanks.
|