作者bmka (偶素米虫)
站内Statistics
标题Re: [问题] 检定不同回归的系数
时间Sat Mar 28 21:19:07 2009
※ 引述《tew (咖啡王子)》之铭言:
: ※ 引述《qq331 (ok~)》之铭言:
: : 有两条回归式
: : y1=a+b*x1+c*x2
: : y2=d+e*x1+f*x2
: : 想检定两条回归式的系数相减後是否为0
: : 也就是想检定 a-d=0, b-e=0, c-f=0
: : 我用mtest写,如下:
: : proc reg data=filename;
: : model y1 y2=x1 x2;
: : mtest intercept;
: mtest y1-y2;
: : mtest x1;
: mtest y1-y2, x1;
: : mtest x2;
: mtest y1-y2, x2;
: : run;
: : 可是这样写,感觉是在检定 a=d=0, b=e=0, c=f=0
: : 并不符合我要的结果
: : 想请问板上是否有高手知道该怎麽修改?
: : 谢谢~
: 修改成这样就可以了
tew大的方法是ok的
原po应该是想用 MANOVA, 只是不知道正确指令
Let me throw out anther idea:
You may treat the data as pretest-posttest data.
Then test whether the interaction terms between time point and the covariates
(intercept, x1, x2) have a coefficent 0.
This may improve the statistical power if y1 and y2 are correlated.
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 71.126.187.93
※ 编辑: bmka 来自: 71.126.187.93 (03/28 21:27)
1F:推 qq331:我看不太懂b大的写法= =a..两个方法得到的结果是一样的吗? 03/29 01:09
2F:→ bmka:Under the normality assumption this should be the same 03/29 01:30
3F:→ bmka:as the MANOVA approach that you originally intended to do 03/29 01:30
4F:推 qq331:那请问要怎麽用MANOVA改写?谢谢~ 03/29 01:34
※ 编辑: bmka 来自: 71.126.187.93 (03/29 01:48)